LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Setting Apache Virtualhost Default Document? (https://www.linuxquestions.org/questions/linux-software-2/setting-apache-virtualhost-default-document-304320/)

Seventh 03-21-2005 10:10 AM

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!

Seventh 03-21-2005 10:47 AM

Fixed this for those searching:

Added:

DirectoryIndex index.php

In the <Virtualhost> setup in httpd.conf.


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