I have a local server running (apache) such that home.test points to /www. I have a vhost
pointing to /www/sites with the url sites.test. This works fine. Any folder inside
/www/sites/ has the url xxx.sites.test. Now I want to add /www/dev such that any sub folders
are linked to xxx.dev.test
<Virtualhost *:80>
VirtualDocumentRoot "www/sites/%1/_site/"
ServerName sites.test
ServerAlias *.test
</Virtualhost>
<Virtualhost *:80>
VirtualDocumentRoot "www/dev/%1/_site"
ServerName dev.test
ServerAlias *.test
</Virtualhost>
Im getting something wrong here, I would expect the above https-vhost.conf to link
/www/dev/xxx to xxx.dev.test but only home.test and xxx.sites.test work.
apachectl -D DUMP_VHOSTS shows ALL three vhosts... Im so confused!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 75:35:25 |
Calls: | 6,657 |
Calls today: | 3 |
Files: | 12,203 |
Messages: | 5,332,646 |
Posted today: | 1 |