标签:
修改http.conf监听多个端口
Listen 80
Listen 8001
Listen 8002
配置站点
<VirtualHost *:8001>
ServerName *:8001
ServerAdmin webmaster@localhost
DocumentRoot /var/www/ceshi
#ErrorLog ${APACHE_LOG_DIR}/error.log
#CustomLog ${APACHE_LOG_DIR}/ceshi.log combined
</VirtualHost>
就可以用IP:8001访问啦
标签:
原文地址:http://www.cnblogs.com/xiaozong/p/5342135.html