php中wampserver多站点配置

时间:2024-11-27 13:36:49

1.修改默认端口

:php中wampserver多站点配置

2.添加多站点:

php中wampserver多站点配置

3.在文件的结尾添加一个站点配置:

<VirtualHost *:8080>
ServerAdmin webmaster@duoduo.com
DocumentRoot "D:/wamp/www/test"
ServerName test.com
ServerAlias www.test.com
ErrorLog "logs/www.d.com-error.log"
CustomLog "logs/www.d.com-access.log" common

<Directory "D:/wamp/www/test">
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

4.在host文件添加域名指向:

127.0.0.1 test.com
127.0.0.1 www.test.com