wamp配置多站点步骤

1. 多端口虚拟目录方法
修改hosts   位置是 C:\windows\system32\drivers\etc\
 
在D:\wamp\bin\apache\apache2.2.21\conf 中找到httpd.conf文件,找到include conf/extra/httpd-vhosts.conf将前面的“;”去掉
找到 Listen 80 在下方增加 Listen 8080
 
在D:\wamp\bin\apache\apache2.2.21\conf\extra中找到httpd-vhosts.conf,在下端增加一组标签
<VirtualHost *:8081>
 DocumentRoot D:/wamp/www2
 ServerName localhost 
 <Directory "D:/wamp/www2">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>
 
保存,重启apache服务器即可
posted @ 2022-06-17 09:48  阿木工作室  阅读(160)  评论(0编辑  收藏  举报