I have an external drive which I use to store website files. I try to set this up as a virtual host in httpd-vhosts.conf with these lines:
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "Y:\Work"
ServerName shareddrive
</VirtualHost>
However with these lines in my vhosts file I get the following error when starting Apache: "Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience."
If I remove these lines from the vhosts file I don't get the error when starting Apache.
Why can't I set up my external drive as a virtual host?!