LoginSignup
2
4

More than 5 years have passed since last update.

[warn]_default_ VirtualHost overlap on port 80 という警告が出た場合の対処

Posted at

ApacheでVirtualHostの追加設定をして再起動したところ

[warn] _default_ VirtualHost overlap on port 80, the first has precedence

というような警告が出ました。

この状態でアクセスしても追加したサイトは表示されずもともと入れてたVirtualHostが表示されます。

この警告は何かというと名前ベースのVirtualHostが有効になってないので、このようなエラーが出るみたい。そりゃそうだというかんじです。

httpd.conf
NameVirtualHost *:80

Apacheの設定ファイルで上のように設定し再起動すれば警告は出なくなります。

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4