Setting a mapped drive in Virtual hosts causes apache to not start
Posted
by
darksoulsong
on Server Fault
See other posts from Server Fault
or by darksoulsong
Published on 2012-10-22T16:13:43Z
Indexed on
2012/10/22
17:03 UTC
Read the original article
Hit count: 164
I´m trying to set a virtual host on my windows 7 machine. The folder I want to point to is located on a centOS machine and the folder path is Z:\Websites\Online\MyClient\Site.
But something strange happens when I set the document root like this:
DocumentRoot "Z:\Websites\Online\MyClient\Site"
Apache do not restarts after that. When I take a look at the log, there is an error pointing to that line, where I added the path to the folder:
Syntax error on line 48 of C:/Program Files/Zend/Apache2/conf/extra/httpd-vhosts.conf: DocumentRoot must be a directory.
There must be a way to make it work like this, by setting an Apache Installation on a machine and pointing it to a folder located on another computer, right?
My hosts file is set like this:
172.17.10.1\Data\Websites\Online\MyClient\Site MyClient.local
ANY HELP would be VERY appreciated.
© Server Fault or respective owner