【问题标题】:.htaccess : Location not allowed here.htaccess : 这里不允许的位置
【发布时间】:2016-07-28 01:06:45
【问题描述】:

我收到此 .htaccess 的“此处不允许位置”错误。

有人知道我应该如何解决这个问题吗?

<Files 'login'>
    AuthName NTLM
    AuthType NTLM
    NTLMAuth on
    NTLMAuthoritative on
    NTLMServer <censored>
    NTLMBackup <censored>
    NTLMLockfile <censored>
    require valid-user
    Satisfy all
</Files>
<Location /alarms/[0-9]+/acknowlege>
    Order deny,allow
    Deny from all
    Allow from localhost
</Location>

【问题讨论】:

  • 你在哪里?

标签: apache web-applications apache-config httpserver


【解决方案1】:

Location.htaccess 中无效

见:

注意Files 说你可以在.htaccess 中拥有它,但Location 没有...你需要将Location 添加到服务器配置或虚拟主机中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-09-14
    • 1970-01-01
    • 1970-01-01
    • 2017-06-05
    • 2015-04-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多