修改http.conf监听多个端口
Listen 80
Listen 8001
Listen 8002
配置站点
<VirtualHost *:8001>
ServerName *:8001
ServerAdmin [email protected]
DocumentRoot /var/www/ceshi
#ErrorLog ${APACHE_LOG_DIR}/error.log
#CustomLog ${APACHE_LOG_DIR}/ceshi.log combined
</VirtualHost>
就可以用IP:8001访问啦
时间: 2024-09-29 22:37:04