我收到此.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>
最佳答案
Location
在.htaccess
中无效
看到:
请注意
Files
怎么说,您可以在.htaccess
中使用它,但是Location
不...您需要将Location
添加到服务器配置或虚拟主机中。
关于apache - .htaccess:此处不允许使用位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6667894/