每次重新配置都会忘记步骤,稍微记录一下自用。
ports.conf
- 配置文件
vim /etc/apache2/ports.conf
- 文件内容
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 80
Listen 8080 # 添加对端口的监听
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule