修改wamp apache 默認端口

 

目標:新配置一個虛擬主機,要求端口爲8080,但要保證原來的80端口仍可用apache

一、修改 httpd.confspa

  

  開啓vhost文件支持code

  

二、httpd-vhosts.conf 中增長,記得把原來的內容所有註釋掉blog

  

<VirtualHost *:80>
    DocumentRoot "E:/wamp/www/test"
    ServerName test.cm
    ServerAlias test.cm
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

<VirtualHost *:8080>
    DocumentRoot "E:/wamp/www/test"
    ServerName test.cm
    ServerAlias test.cm
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

三、重啓apacheclass

相關文章
相關標籤/搜索