I'm running Apache 2.28 on Windows 7, and this is my directory structure:
C:/
www (which contains the Apache server, it's the free Web-Developer Server-Suite, that's its default configuration of C:/www/)
vhosts
vhosts.1
vhosts.2
and I added to httpd-vhosts.conf:
<Directory C:/www/vhosts.1>
Order Deny,Allow
Allow from all
</Directory>
<Directory C:/www/vhosts.2>
Order Deny,Allow
Allow from all
</Directory>
but just to test that I could put them anywhere, I then added a virtualhost, added the domain to the HOSTS file, and put it in C:/www (the main webroot).
This was for the latest domain I added:
<VirtualHost *:80>
ServerName testing-server-win7.co.uk
ServerAlias www.testing-server-win7.co.uk
DocumentRoot /www/testing-server-win7.co.uk
ErrorLog /www/Apache22/logs/error.log
<Directory "/www/testing-server-win7.co.uk">
Options All
AllowOverride All
order allow,deny
allow from all
</Directory>
and it worked, surprisingly.
Why is this, and can you really place them anywhere on Apache?
This is a development server, btw, not open to the Internet - although the computer does have Internet access.
Anyone tried this here, and did it work for them?
Thanks