【问题标题】:What modules does mod_rewrite depend on?mod_rewrite 依赖于哪些模块?
【发布时间】:2009-03-07 01:00:13
【问题描述】:

代理?代理http?还有什么?

当我包含所有可用模块时,重写工作正常,但我很难弄清楚哪些模块真正起到了作用。

回答:vhost_alias 是其中之一。现在似乎可以工作了。

【问题讨论】:

    标签: apache apache2


    【解决方案1】:

    mod_rewrite 本身没有任何直接依赖关系。有一些指令可以将工作委托给其他模块(例如 RewriteRule .... [P],它使用 mod_proxy 来执行请求),因此需要额外的模块。

    【讨论】:

      【解决方案2】:

      要让 mod_rewrite 工作, 首先,你必须打开它。 在 httpd.conf 取消注释:LoadModule rewrite_module libexec/mod_rewrite.so 并重新启动 Apache。

      如果您使用 .htaccess 来管理 mod_rewrite,那么您也需要激活它。 并设置 AllowOverride。

      参考:http://www.usenet-forums.com/apache-web-server/10742-activate-mod_rewrite.html

      http://www.apachefriends.org/f/viewtopic.php?f=16&t=33314http://httpd.apache.org/docs/2.0/en/mod/core.html#allowoverride

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-09-18
        • 2019-09-17
        • 2020-02-05
        • 1970-01-01
        • 2020-03-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多