.htaccess:此处不允许使用位置 [英] .htaccess : Location not allowed here
本文介绍了.htaccess:此处不允许使用位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此.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
请参阅:
- http://httpd.apache.org/docs/2.2/mod/core.html #location
- http://httpd.apache.org/docs/2.2/mod/core.html #files
请注意Files
如何说您可以在.htaccess
中拥有它,但Location
却没有...您需要将Location
添加到服务器配置或虚拟主机中./p>
I am getting a "Location not allowed here" error with this .htaccess
.
Does anyone have any idea on how I should fix this?
<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
isn't valid in .htaccess
See:
- http://httpd.apache.org/docs/2.2/mod/core.html#location
- http://httpd.apache.org/docs/2.2/mod/core.html#files
Notice how Files
says that you can have it in .htaccess
, but Location
doesn't... You'll need to add your Location
to either the server config or a virtual host.
这篇关于.htaccess:此处不允许使用位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文