求助啊,appserv这个东西,如何配置多站点?
求助啊,appserv这个东西,如何配置多站点?
appserv是集成 apache mysql php一起的
怎么配置多站点啊,是不是只需要修改httpd啊
我看教程修改了几次 都不行啊
大家谁有办法啊
------解决方案--------------------
虚拟机配置:
1/打开-》httpd.conf 文件中的# Virtual hosts
Include conf/extra/httpd-vhosts.conf把前面的#号给去掉
2/打开D:\AppServ\Apache2.2\conf\extra\httpd-vhosts.conf中进行配置
如:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.x
DocumentRoot "D:/AppServ/www/"
ServerName www.besttrip.cn
ServerAlias www.besttrip.cn
ErrorLog "logs/dummy-host.x-error.log"
CustomLog "logs/dummy-host.x-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.x
DocumentRoot "D:/AppServ/www/visabest.cn"
ServerName www.visabest.cn
ErrorLog "logs/dummy-host2.x-error.log"
CustomLog "logs/dummy-host2.x-access.log" common
</VirtualHost>