httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Henry" <bryan.he...@mail.utexas.edu>
Subject vhosts serving out right index.html files but wrong index.php files
Date Mon, 18 Mar 2002 16:58:29 GMT
I am stumped by this.  Everything had been working fine 
until I switched some vhost files from index.html to 
their respective index.php

My virtual hosts serve out the right index.html files.
Each call to http://myvirtual.example.net returns the 
index.html file from http://myvirtual.example.net 

Each call to http://myvirtual.example.net returns 
the index.php file from http://myroot.example.net
but does not relatively link to the right css or images.

All requests to http://myroot.example.net work as expected.

Do I have to put directives in the <VirtualHost *> to 
set DirectoryIndex and handling of .php extensions?

thanks all
~ b r y a n

My configuration is as follows:
_______________________________
Apache 2.0.28 Windows
PHP 4.1.2 CGI
_______________________________

NameVirtualHost *

<VirtualHost *>
    DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
    ServerName myroot.example.net
    ServerAdmin myroot@mymail.com
</VirtualHost>

<VirtualHost *>
    DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/myvirtual"
    ServerPath "C:/Program Files/Apache Group/Apache2/htdocs/myvirtual" 
    ServerName myvirtual.example.net
    ServerAdmin myvirtual@mymail.com
    ErrorLog logs/myvirtual.example.net-error.log
    CustomLog logs/myvirtual.example.net-access.log common
</VirtualHost>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message