Apache文件协商失败
我在使用Apache 2.2.22 + PHP 5.4.0的主机上遇到以下问题 /home/server1/htdocs/admin/contents.php当用户发出请求时,我需要提供文件:http://server1/admin/contents,但是我在服务器error_log上获得此消息。 Negotiation: discovered file(s) matching request: /home/server1/htdocs/admin/contents (None could be negotiated) 请注意,mod_negotiation在相关虚拟主机的选项中,我已启用和MultiViews: <Directory "/home/server1/htdocs"> Options Indexes Includes FollowSymLinks MultiViews Order allow,deny Allow from all AllowOverride All </Directory> 我还使用mod_rewrite,并遵循以下.htaccess规则: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^\./]*)$ index.php?t=$1 [L] </IfModule> 似乎很奇怪,但是在PHP 5.3.6的同一盒中,它曾经可以正常工作。我只是想升级到PHP 5.4.0,但无法解决此协商问题。关于Apache为什么contents.php在请求时无法匹配的想法content(应该是mod_negotiation应该做什么)? …