LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-03-2003, 03:31 AM   #1
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Rep: Reputation: 30
Question apache default page


How can I reset the default page?

i.e. the page that is served when the url 'http://localhost' is typed in a browser.

I changed this once, and am wanting to change it again, but can't find what I changed. I thought it was set in the httpd.conf file, but can't see it.

Any ideas?

Dave
 
Old 01-03-2003, 05:27 AM   #2
irish_rover
Member
 
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
Depending on your install apache looks in the root web directory for an index file..so you can simply go to that directory and replace the file. Or you can change what files and extensions apache looks for in the httpd.conf file.
 
Old 01-03-2003, 09:57 AM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Mine is /var/www/htdocs
Default Slack 8.1 install
Cool
 
Old 01-03-2003, 01:03 PM   #4
then
Member
 
Registered: Oct 2002
Location: FDR India
Distribution: RH9, Knoppix, MEPIS
Posts: 65

Rep: Reputation: 15
Re: apache default page

Quote:
Originally posted by davee
How can I reset the default page?

I changed this once, and am wanting to change it again, but can't find what I changed. I thought it was set in the httpd.conf file, but can't see it.
Apache loads index.html.en as the default home page. If you want another home page you have 2 options -

* rename the original index.html.en page and put your own page as index.html.

* rename the original index.html.en to something else, put your_own-webpage.html in /apache/htdocs and then put your_own-webpage.html under DirectoryIndex directive in httpd.conf.

<aside>
AFAIK Apache looks for files mentioned under DirectoryIndex directive of httpd.conf for default pages to load.

You can put files like index.html, index.php, default.html, home.html under DirectoryIndex of httpd.conf for Apache to search and load the first one it finds under /apache/htdocs i.e. if it doesn't find index.html it will load index.php or default.html if index.html and index.php are not found.
</aside>

HTH
theN

Last edited by then; 01-03-2003 at 01:05 PM.
 
Old 02-17-2003, 04:06 AM   #5
initself
Member
 
Registered: Feb 2003
Location: Lake Forest, CA
Distribution: Slackware 10.2, Ubuntu 6.06 LTS
Posts: 38

Rep: Reputation: 16
Well then, how do you change that?

Quote:
Originally posted by MasterC
Mine is /var/www/htdocs
Default Slack 8.1 install
Cool
I can't figure out how to override this default in the slackware installation and replace that directory with my clean install to /usr/local/apache/htdocs!

Can someone help out?

mb
 
Old 02-17-2003, 04:18 AM   #6
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
uninstall the pre-installed apache..

does slackware also support rpms?

if not i don't know how to uninstall that thing ..
 
Old 02-17-2003, 09:46 AM   #7
initself
Member
 
Registered: Feb 2003
Location: Lake Forest, CA
Distribution: Slackware 10.2, Ubuntu 6.06 LTS
Posts: 38

Rep: Reputation: 16
Startup Script

Add a line to my startup scripts pointing to the httpd.conf file for the new version. Bingo!

mb
 
  


Reply


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
Default Apache 2 Page linutzy Linux - Newbie 7 08-02-2005 07:18 PM
Apache default page dienerk Linux - General 4 10-22-2004 01:02 PM
setting up default page in apache watts3000 Linux - Networking 2 09-25-2004 07:56 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
Apache default page?? andy18 Linux - General 6 07-16-2003 02:57 AM


All times are GMT -5. The time now is 07:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration