Doing some development work for a website. Trying to setup a test environment using Apache on local Windows 10 pc.
I've added an entry to Hosts file to redirect www.w2w3w2.com
to localhost. However, I also want to redirect to a filesystem folder path (i.e. other than DocumentRoot).
I tried using the following Aliases, but url was not redirected away from DocumentRoot (and no errors in error.log):
Alias /w2w3w2 /"D:/Documents/www/w2w3w2"
Alias /w2w3w2 /D:/Documents/www/w2w3w2
I am using Options Indexes on DocumentRoot and can navigate to /w2w3w2 and see/execute contents, so doesn't look like an access control issues.
If I add the following VirtualHost block, then it works fine:
Why can't I get the Alias directive to work?