【问题标题】:.htaccess and mod_rewrite as a replacement for httpd.conf.htaccess 和 mod_rewrite 作为 httpd.conf 的替代品
【发布时间】:2013-09-21 22:49:59
【问题描述】:

我需要安装和配置http://code.google.com/p/mod-auth-token/#Apache_Configuration。 Howether 我的主机 (VPS) 无法访问 httpd.conf。有人建议我改用 mod_rewrite 和 .htaccess。我需要设置这些数据:

<Location /downloads/>
      AuthTokenSecret       "secret string"
      AuthTokenPrefix       /downloads/
      AuthTokenTimeout      60
      AuthTokenLimitByIp    off
</Location>

问题是 - 正确的方法是什么?

【问题讨论】:

    标签: .htaccess mod-rewrite replace httpd.conf


    【解决方案1】:

    很遗憾你不能。

    Location Directive 仅允许在 Apache 配置中使用,而不允许在 .htaccess 中使用

    【讨论】:

    猜你喜欢
    • 2017-01-16
    • 1970-01-01
    • 2012-04-17
    • 2017-04-05
    • 2013-07-18
    • 2011-07-04
    • 2020-03-21
    • 2017-12-27
    • 1970-01-01
    相关资源
    最近更新 更多