任何人都可以帮助我在我的WAMP服务器上设置这个虚拟主机吗?如何纠正Wamp上的这个虚拟主机设置?
我已经通过在线阅读了几篇文章和博客,无法获得此设置。
我遵循的程序这里建议:http://www.ruifeio.com/2011/01/30/setting-up-virtual-hosts-on-wampserver/
当我做以上,我的服务器挂断。目前我增加了以下我的C:/窗/ SYSTEM32 /司机/ etc/hosts文件
127.0.0.1 tsg.local
我改变了我的httpd.conf Apache的配置文件,听90,因为我使用端口90
另外,按照上述教程中的建议移除#标记。
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
我还增加了以下我的httpd-vhosts.conf
<VirtualHost *:90>
ServerAdmin [email protected]
DocumentRoot “C:\wamp\www\tsg\”
ServerName tsg.local
ErrorLog “C:\wamp\www\logs\tsg.log”
CustomLog “C:/wamp/www/logs/common.log” common
</VirtualHost>
而改变:*了NameVirtualHost:80〜了NameVirtualHost *:90
感谢提前帮忙!
在这篇文章中提到的过程最终帮助了我。 [http://stackoverflow.com/questions/12391799/multiple-virtual-sites-with-wampserver?rq=1][1] [1]:http://stackoverflow.com/问题/ 12391799/multiple-virtual-sites-with-wampserver?rq = 1 – Gaurav 2013-02-11 19:02:32