Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-09-2003, 08:40 AM   #1
LQ Newbie
Registered: May 2003
Posts: 2

Rep: Reputation: 0
Unhappy 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)

Old 05-09-2003, 08:49 AM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 69
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.

Old 05-09-2003, 09:20 AM   #3
LQ Newbie
Registered: May 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy 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/
i dont need to replace the file just to find it and be able to edit it would make me happy

Old 05-09-2003, 09:40 AM   #4
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
Re: i hate being a newbie

Originally posted by littlebradley
Can you tell me exatcly what the file is called
Originally posted by MasterC
Look for index.html.en (assuming you are using english):
locate index.html.en
Old 05-09-2003, 08:39 PM   #5
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
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...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown Local Host MizEllyRolls Linux - Security 3 09-14-2005 08:32 PM
Local Host? mac_casey Linux - General 7 03-02-2005 08:04 AM
Can Apache host more than one webpage? Jestrik Linux - Networking 2 03-29-2004 04:15 PM
Unable to run webpage on local server using ip in the url MakingOfAGeek Linux - Newbie 16 11-15-2003 07:09 AM
Local Host Name Change!! jarmstrong Linux - General 9 12-21-2002 02:43 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration