httpd.conf文件内可添加端口
例如:
listen 0.0.0.0:8080
listen [::0]:8080
httpd-vhosts.conf文件设置多个站点
设置了require all granted才可被外网访问
<virtualhost *:80> servername localhost documentroot c:/wamp/www <directory "c:/wamp/www"> options indexes followsymlinks execcgi order allow,deny allow from all allowoverride all require all granted </directory> </virtualhost>
以上就是wampserver如何配置php网站多站点的详细内容。