Forum Moderators: phranque

Message Too Old, No Replies

Virtual Hosting Problems with Apache on WinXP

         

ffcuk

3:32 pm on Mar 8, 2005 (gmt 0)



Hello,

I have the following installed on WinXP SP2:
Apache 2.0.53
PHP 5.0.3
MySQL 4.1

My WinXP C drive is installed on a NTFS volume and I'm not too sure which access rights to give to the htdoc and Vrtualhost folders. but my main problem lies elsewhere...
I'm having a problem with my virtual hosts. this is how it's setup in my httpd.conf:

NameVirtualHost *:80

<VirtualHost *:80>

DocumentRoot "C:/www/www.domain01.com"
ServerName www.domain01.com

</VirtualHost>

I placed a htm file with the text Domain01 in it and it shows up fine under the virtual host folder, but once I upload PHP files to it, it seems as if it jumps back to the Main document in "C:/Program Files/Apache Group/Apache2/htdocs" and shows me the index.php there. I’m getting a bit confused as I tried to play around with some other ways and also got Access denied to the folder hence me asking the rights question at the beginning.
Could some body please tell me what I'm doing wrong.
Thanks for your help.