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 以前では必要でした。

関連情報