0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

apache2.2のどのVirtualHost設定にもServerNameが該当しないときの挙動

Posted at

たとえば、xxxxx.comのServerName設定がなく、aaaaa.comのVirtualHost設定の優先順位が先頭の場合、xxxxx.comはaaaaa.comのVirtualHost設定が適用される。

つまり、リクエストが どの ServerName ディレクティブにもマッチしない場合、 一番最初の VirtualHost により扱われます。

どのVirtualHost設定が最優先されるかは、以下のコマンドで確認できる

httpd -S

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?