大网数据广告活动
服务器运维问答

Apache 2.4 updated, now throws: Cannot define multiple Listeners on the same IP:port

· 52CE 我爱测

I've just updated Apache to 2.4.3 on my AWS instance (running Linux AMI). After the update finished, Apache crashed with the following: Starting httpd: AH00526: Syntax error on line 5 of /etc/httpd/conf.d/ssl.conf: Cannot define …

问题原文

原帖链接 · Edmond Tamas · CC BY-SA 4.0

I've just updated Apache to 2.4.3 on my AWS instance (running Linux AMI). After the update finished, Apache crashed with the following:

Starting httpd: AH00526: Syntax error on line 5 of /etc/httpd/conf.d/ssl.conf:
Cannot define multiple Listeners on the same IP:port

I went into the above file and commented out line 5: #Listen 443, because the new httpd.conf contains a line where the above listener is already set:

httpd.conf:

 40 ...
 41 #Listen 12.34.56.78:80
 42 Listen 80
 43 Listen 443
 44 
 45 ...

My question is, if I configure SSL certificates individually in my VirtualHost's config files, could I just comment out every line in the httpd/conf.d/ssl.conf? I mean is it still important to have it included? And why Apache 2.4.3 sets Listen 443 twice?

Thanks!

社区高分解答

原帖链接 · AsimRazaKhan · CC BY-SA 4.0

I have got the same error on different file

AH00526: Syntax error on line 18 of /private/etc/apache2/other/httpd_xcs.conf:
Cannot define multiple Listeners on the same IP:port

I just comment #Listen 443 and it worked fine.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-09-26)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。