在更新了Ubuntu发行版之后,我有很多问题,除了一个之外,我大部分都修复了。
我有apache 2服务器,MultiViews不工作。我的网站上有很多这样的网址:(现在我得到404)
/heme/image.php/someimg.jpg或
/heme/other.php/smoething?asd=bsd或
/index.php/param1/param2/很多其他的.php文件都是这样工作的。我用谷歌搜索并尝试了许多技巧,但没有起到任何作用。
加载mod_negotiation (由phpinfo()确认)选项+为目录设置多视图
我尝试在/etc/mime.type中取消这一行的注释,但是如果这样做,我在浏览器中得到了"err_incomplete_chunked_encoding“,而不是解决了我的问题。
#application/x-httpd-php phtml pht php
#application/x-httpd-php-source phps
#application/x-httpd-php3 php3
#application/x-httpd-php3-preprocessed php3p
#application/x-httpd-php4 php4
#application/x-httpd-php5 php5你知不知道?
发布于 2017-04-14 15:53:40
我为我的html根文件夹创建了一个.htaccess文件。这解决了我的问题。但我不明白有什么问题。
AcceptpathInfo On
Options MultiViews
MultiviewsMatch Handlershttps://serverfault.com/questions/844521
复制相似问题