- Joined
- Oct 29, 2001
- Location
- St. Paul, MN
When I set up a virtual host with apache it then uses that directory as the document root directory for the server. How can I get it to not do this? I want to keep the document root directory at C:\FoxServ\www
I have a website of mofrogs in the WWW directory that I want to set up using virtual hosts.
here is the way I have tried it but it hijacks the documentroot directory so when I use localhost in the browser it goes to the mofrogs site but I want it to stay in the C:/foxserv/www and have that be my localhost directory not mofrogs.com. Hope I made sense....
<VirtualHost *>
# ServerAdmin [email protected]
ServerName www.mofrogs.com
DocumentRoot C:\FoxServ\www\mofrogs
#
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
I have a website of mofrogs in the WWW directory that I want to set up using virtual hosts.
here is the way I have tried it but it hijacks the documentroot directory so when I use localhost in the browser it goes to the mofrogs site but I want it to stay in the C:/foxserv/www and have that be my localhost directory not mofrogs.com. Hope I made sense....
<VirtualHost *>
# ServerAdmin [email protected]
ServerName www.mofrogs.com
DocumentRoot C:\FoxServ\www\mofrogs
#
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>