LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-09-2003, 08:40 AM   #1
littlebradley
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)

thanks!
Bradley
 
Old 05-09-2003, 08:49 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

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.

Cool
 
Old 05-09-2003, 09:20 AM   #3
littlebradley
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/
/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
 
Old 05-09-2003, 09:40 AM   #4
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
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
 
Old 05-09-2003, 08:39 PM   #5
bulliver
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...
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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