【发布时间】:2016-03-22 02:48:40
【问题描述】:
我正在我的 EC2 实例上开发 apache2 环境。为了安全起见,我想更改 apache2 的 ssl 端口。 我已经通过使用 chrome 浏览器检查页面来确认默认 ssl 端口 443 正在工作。但是在像下面这样修改ports.conf之后,我遇到了一个错误,ERR_SSL_PROTOCOL_ERROR在访问这个服务器时像https://xxxxxxx:18443/
有更改ssl端口的设置吗?
监听端口
$ ss -lnt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:22 *:*
LISTEN 0 64 *:7777 *:*
LISTEN 0 50 127.0.0.1:3306 *:*
LISTEN 0 128 :::22 :::*
LISTEN 0 128 :::18443 :::*
/etc/apache2/ports.conf
#Listen 80
<IfModule ssl_module>
Listen 18443
</IfModule>
<IfModule mod_gnutls.c>
Listen 18443
</IfModule>
环境
- 操作系统:ubuntu 14.04 服务器 (Amazon/EC2 AMI)
- apache:Apache/2.4.7 (Ubuntu)
EC2 入站安全策略
Custom TCP rule: TCP, 18443, 0.0.0.0/0
Custom UDP rule: UDP, 18443, 0.0.0.0/0
【问题讨论】:
标签: apache ssl amazon-ec2 https apache2