.htaccess:这里不允许有位置

时间:2011-07-12 16:47:03

标签: apache web-applications apache-config httpserver

.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>

1 个答案:

答案 0 :(得分:28)

Location.htaccess

中无效

请参阅:

请注意Files如何表示您可以在.htaccess中使用它,但Location不会......您需要将Location添加到{{1}}服务器配置或虚拟主机。