1. /etc/apache/sites-available/000-default.conf中

复制'<Virtual Host *:[端口号]></Virtual>',修改其中的端口号和项目地址

2. /etc/apache/apache.conf 中

增加'Listen [端口号]'

3.重启Apache

#service apache restart

相关文章: