.htaccess:此处不允许使用位置 [英] .htaccess : Location not allowed here

查看:187
本文介绍了.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

中无效

请参阅:

请注意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:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆