I've got my website folder in "My documents" folder and I'm trying to set up Apache to run the php files there through the php interpreter.
It all works fine when I put my website folder into c:\www\vhosts\localhost, but that's not what I want.
So that's what I did:
I created the my_website.conf file in C:\www\Apache22\conf\extra\vhosts\localhost
It contains:
Code: Select all
Alias /my_website "C:\Documents and Settings\I\My Documents\my_website"
<Directory "C:\Documents and Settings\I\My Documents\my_website">
Options All
AllowOverride All
order allow,deny
allow from all
</Directory>
Code: Select all
<VirtualHost *:80>
DocumentRoot /www/vhosts/localhost/
ServerName localhost
Include conf/extra/vhosts/localhost/*.conf # <----------- The bit that counts
</VirtualHost>
My php set-up works otherwise. .. and yes I did restart apache
Any advice would be appreciated
Cheers!
Michael