Apache 2.2 无法在 Server 2012 R2 上启动

Apache 2.2 无法在 Server 2012 R2 上启动

这是我收到的错误消息,但netstat调查显示端口4343未被利用。

[Fri Apr 06 11:44:21 2018] [warn] module ssl_module is already loaded, skipping
[Fri Apr 06 11:44:21 2018] [warn] _default_ VirtualHost overlap on port 4343, the first has precedence
(OS 10048) Only one usage of each socket address (protocol/network address/port) is normally permitted.  
: make_sock: could not bind to address 0.0.0.0:4343
no listening sockets available, shutting down
Unable to open logs

有什么建议么?

答案1

正如@patrick-mevzek所说,你可能希望确保你有一个名称虚拟主机在基于名称的虚拟主机声明的开头添加指令,例如:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
DocumentRoot /www/domain
</VirtualHost>

<VirtualHost *:80>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>

此声明已从 Apache 的当前版本中删除,但在 Apache 2.2 及更早版本中是必需的。

相关内容