Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-28-2004, 03:43 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
RH9 Apache Virtual Host Default Document

I reinstalled Red Hat 9 on a server and I can't get it to find the default document.
I have followed the steps outlined in the Red Hat Apache set up document.
I have compared it with my other Red Hat 9 server which works correctly, but with no luck.
My default document is default.php. Neither of the following works: URL URL/ however URL/default.php works. I added default.php to the Directory Page Search List. I also restarted httpd. What else do I need to do?
Old 01-28-2004, 08:13 PM   #2
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
if "index.html" is the default, why not make a symlink "index.html" pointing to your "default.php"?
i know it's a roundabout way, but ...
Old 01-29-2004, 09:27 AM   #3
LQ Newbie
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
"index.html" was no longer the default. It would not find any file!

The problem is in the Apache Configuration tool. For some unknown reason DirectoryIndex in the config file has no filenames listed after it even though they show up in the configuration tool. I added the values in the config file but whenever I close the Apache Configuration tool it deletes them. So I ended up creating a file called dir.conf in /httpd/conf.d the file contains:

DirectoryIndex default.php default.htm

That has solved the problem for now.


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
changeing default document from index.html in apache thebover Linux - Software 3 03-30-2005 09:26 PM
Setting Apache Virtualhost Default Document? Seventh Linux - Software 1 03-21-2005 10:47 AM
apache 1.3 config question; default document? soliant Linux - Software 1 03-25-2004 11:50 AM
Apache question regarding security and default document WolfShade Linux - Newbie 1 10-31-2003 01:37 PM
Apache doesn't allow non-document-root access in default setup jenna_h Mandriva 1 10-28-2003 07:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration