Answer the question
In order to leave comments, you need to log in
How to disable .htaccess or limit its effect depending on the request URL?
I'm using Kerberos-based authorization and I'd like to disable it for the root URL: mysite.com/. But for all other pages, I would like it to work as before, for example for mysite.com/page1.
This is how my .htaccess is configured:
AuthType Kerberos
AuthName "Domain login"
KrbAuthRealms DOMAIN.COM
KrbMethodK5Passwd on
Krb5KeyTab /etc/httpd/httpd.keytab
require valid-user
<Directory /home/user/www/current/public/>
Options -MultiViews +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Answer the question
In order to leave comments, you need to log in
Asked a similar question on ServerFault.
I also posted my solution there: serverfault.com/questions/404149/how-can-i-disable-kerberos-authentication-for-only-the-root-of-my-site/404315#comment423167_404315
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question