Download your favorite Linux distribution at LQ ISO.
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 11-29-2004, 01:56 PM   #1
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Rep: Reputation: 30
How to change default Apache page?

I have apache installed...but in order to access index.html, I need to go to directly
rather than just

how do I fix this?

Old 11-29-2004, 02:00 PM   #2
Not now, John!
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
What page do you get when you request

Probably, the order of values for DirectoryIndex directive in httpd.conf can fix that.

Last edited by Not now, John!; 11-29-2004 at 02:05 PM.
Old 11-29-2004, 02:10 PM   #3
Registered: Nov 2004
Location: South Africa
Distribution: Kubuntu 6.10, Fedora Core 6
Posts: 30

Rep: Reputation: 15
Ya, you need to change your httpd.conf file.

Look for the following entry

<IfModule mod_dir.c>
DirectoryIndex index.html index.php

Make sure that it's uncommented and that both index.html and index.php exist (at least index.html if that's your index page).
If that entry doesn't exist then add it, restart apache and it should work.

Old 11-29-2004, 05:31 PM   #4
Registered: Aug 2003
Distribution: Gentoo 2006.1
Posts: 405

Original Poster
Rep: Reputation: 30
that worked! thanks. It was uncommented, but didn't have index.php, so I added it, restarted. and voila.

Not now, John!,
I was getting the apache default page.


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
Apache default page dienerk Linux - General 4 10-22-2004 01:02 PM
change default error page for apache linuxtesting2 Linux - Networking 2 09-26-2004 07:38 AM
how to change apache default page yenonn Linux - Networking 3 08-17-2004 10:27 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 > Forums > Linux Forums > Linux - Software

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

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