LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Local Host Webpage (https://www.linuxquestions.org/questions/linux-software-2/local-host-webpage-58894/)

littlebradley 05-09-2003 08:40 AM

Local Host Webpage
 
Hello all,
i was hoping you could tell me how to edit the localhost.localdomain webpage (http://localhost)
its on a mandrake 9.0 box. (the webserver is apache)

thanks!
Bradley

MasterC 05-09-2003 08:49 AM

Depends on what's listed in your httpd.conf file. Look for index.html.en (assuming you are using english):
locate index.html.en
And it should bring up the location of that file. In that directory place your index.html file and it should replace the default apache page.

Cool

littlebradley 05-09-2003 09:20 AM

i hate being a newbie
 
Thanks for the quick reply
Can you tell me exatcly what the file is called i've been at this all day and im about to throw the server out the window. i'm in the usr/share/doc/apache-manual-1.3.26/
/mod
/programs
/vhosts
i dont need to replace the file just to find it and be able to edit it would make me happy

Thanks
bradley

iceman47 05-09-2003 09:40 AM

Re: i hate being a newbie
 
Quote:

Originally posted by littlebradley
Can you tell me exatcly what the file is called
Quote:

Originally posted by MasterC
Look for index.html.en (assuming you are using english):
locate index.html.en


bulliver 05-09-2003 08:39 PM

Your httpd.conf has a line in it called "DocumentRoot", it is a directory. Put your own index.html in this directory, and it will override the apache default page: "Congrats, it worked!!"

Behind the scene apache magic grabs index.html.en but you don't want your own webpages in the directory that contains this file, you want them in your DocumentRoot.

Don't forget to make the webpages world-readable...


All times are GMT -5. The time now is 05:33 PM.