LoginSignup
0
0

More than 5 years have passed since last update.

VirtualHostの謎

Posted at

SITE.example.jp:80にアクセスすると、時々SITE2側のCGIが動作する(?)。

<VirtualHost 192.168.1.1:80>
    DocumentRoot /SITE/htdocs
    ServerName SITE.example.jp
</VirtualHost>
<VirtualHost 192.168.1.1:80>
    DocumentRoot /SITE2/htdocs
    ServerName SITE2.example.jp
</VirtualHost>
<VirtualHost 192.168.1.1:443>
    DocumentRoot /SITE2/htdocs
    ServerName SITE.example.jp  #←SITE2.example.jpの間違い
</VirtualHost>

下から2行目をSITE2に修正したら変な挙動が直った。
まだ良くわかってないので時間あったら検証。

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