.htaccess : Location not allowed here
Asked Answered
P

1

24

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>
Patras answered 12/7, 2011 at 16:47 Comment(1)
Where are you with this?Yseult
S
34

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.

Sfax answered 12/7, 2011 at 17:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.