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 及更早版本中是必要的。

相關內容