【问题标题】:Apache configuration broken after software update软件更新后 Apache 配置损坏
【发布时间】:2012-04-12 03:46:31
【问题描述】:

我刚刚更新了我的 Ubuntu 过时的开发服务器,它破坏了一些配置。 现在 apache/php 不能正确处理像 index.php/profile 这样的 url,但只会正确处理 index.php

基本上如果index.php后面有一些路径,那么它会返回404错误: 在此服务器上找不到请求的 URL /index.php/profile。

什么配置选项可以解决这个问题?我需要紧急解决这个问题。提前致谢!

【问题讨论】:

    标签: php apache configuration indexing rewrite


    【解决方案1】:

    检查AcceptPathInfo的设置:

    该指令控制是否接受或拒绝包含跟随实际文件名(或现有目录中不存在的文件)的尾随路径名信息的请求。 PATH_INFO 环境变量中的脚本可以使用尾随路径名信息。

    例如,假设位置 /test/ 指向仅包含单个文件 here.html 的目录。然后对 /test/here.html/more 和 /test/nothere.html/more 的请求都将 /more 收集为 PATH_INFO。

    【讨论】:

      猜你喜欢
      • 2011-04-06
      • 1970-01-01
      • 2014-12-16
      • 2016-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-15
      • 1970-01-01
      相关资源
      最近更新 更多