LinuxQuestions.org
Visit Jeremy's Blog.
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 03-21-2005, 11:10 AM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
Setting Apache Virtualhost Default Document?


I have a webserver using Name based Virtual Hosting.

For some reason, the VHosts only work if index.html is present in the wwwroot. index.htm doesn't work, nor does index.php. If either of those are present, I get the apache default page instead of the virtual host.

How do I set this?

Thanks!
 
Old 03-21-2005, 11:47 AM   #2
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
Fixed this for those searching:

Added:

DirectoryIndex index.php

In the <Virtualhost> setup in httpd.conf.
 
  


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
apache 1.3 config question; default document? soliant Linux - Software 1 03-25-2004 12:50 PM
RH9 Apache Virtual Host Default Document jswilson Linux - Newbie 2 01-29-2004 10:27 AM
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

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

All times are GMT -5. The time now is 11:55 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