私はこのような2つの仮想ホストを持っています:
<VirtualHost *:80>
DocumentRoot /var/www/html/watermelon/hhgt/webroot
ServerName booking
#ErrorLog logs/booking-error_log
#CustomLog logs/booking-access_log common
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:5321>
DocumentRoot /var/www/html/watermelon/ik/webroot
ServerName hotspot.local
ErrorLog logs/hotsppot.local-error_log
CustomLog logs/hotsppot.local-access_log common
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
そして、それらは同じ .htaccess を持っています:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
時々、最初の vhost が 2 番目の vhost index.php をロードします!
何か案が?