apache - virtual hosts WAMP server -
i trying setup virtual wamp localhost.
localhost
root folder: c:\wamp\www
mysite.local
root folder: c:\wamp\site2
steps of every kind taken: removing # file "httpd.conf"
#include conf/extra/httpd-vhosts.conf
addition in httpd-vhosts.conf:
<virtualhost *:80> serveradmin webmaster@localhost documentroot "c:/wamp/www" servername localhost errorlog "logs/localhost-error.log" customlog "logs/localhost-access.log" common </virtualhost> <virtualhost *:80> documentroot "c:/wamp/site2" servername mysite.local <directory "c:/wamp/site2"> options indexes followsymlinks allowoverride order deny,allow deny allow 127.0.0.1 </directory> </virtualhost>
addition in hosts file:
127.0.0.1 mysite.local
problem is, in either case www root folder through localhost or mysite.local. solution?
//httpd.conf >loadmodule vhost_alias_module modules/mod_vhost_alias.so
delete comment icon (#), may help.
Comments
Post a Comment