此.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>
答案 0 :(得分:28)
Location
在.htaccess
请参阅:
请注意Files
如何表示您可以在.htaccess
中使用它,但Location
不会......您需要将Location
添加到{{1}}服务器配置或虚拟主机。