httpd.conf 下
在Listen 80 监听下添加
Listen 8080
取消 Include conf/extra/httpd-vhosts.conf 的注释
httpd-vhosts.conf 下
1. 修改 80 端口的DocumentRoot 及Directory 为自己的路径,否则重起apache会弹 warning
2. 添加新的端口以及目录
<VirtualHost *:8080>
DocumentRoot "/usr/local/apache24/pmw"
ServerName www.pmw.com
ServerAlias
<Directory "/usr/local/apache24/pmw">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>