LinuxQuestions.org
Visit Jeremy's Blog.
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-28-2004, 04:43 PM   #1
jswilson
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, 09:13 PM   #2
h/w
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, 10:27 AM   #3
jswilson
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.
 
  


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


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