Apache多端口配置
修改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访问啦
转载请注明原处