Apache に複数の VirtualHosts があり、すべてポート 80 でリッスンし、ServerNames が異なる Web アドレスに設定されています。IP アドレスに直接アクセスすると、Apache はデフォルトでそれらの Web サイトの 1 つに送信します。IP アドレスへのリクエストを処理する仮想ホストを変更したいと考えています。どうすればいいですか?
<!-- This is currently the default (probably because it's first alphabetically) -->
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mywebsite.com
DocumentRoot /var/www/testingother
...
</VirtualHost>
<!-- I want this to be default -->
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName myotherwebsite.com
DocumentRoot /var/www/testing
...
</VirtualHost>