Disable .htaccess or disable some rules from .htaccess on specific URL

Posted by petRUShka on Server Fault See other posts from Server Fault or by petRUShka
Published on 2012-07-02T18:03:48Z Indexed on 2012/07/02 21:18 UTC
Read the original article Hit count: 779

Filed under:
|
|
|

I have Kerberos-based authentication and I want to disable it on only root url: mysite.com/. And I want it to works fine on any other page like mysite.com/page1.

I have such things in my .htaccess:

AuthType Kerberos
AuthName "Domain login"
KrbAuthRealms DOMAIN.COM
KrbMethodK5Passwd on
Krb5KeyTab /etc/httpd/httpd.keytab
require valid-user

I want to turn it off only for root URL. As workaround it is possible to turn off using .htaccess in virtual host config. Unfortunately I don't know how to do it.

Part of my vhost.conf:

    <Directory /home/user/www/current/public/>
            Options -MultiViews +FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
    </Directory>

It would be great if you can advice me something!

© Server Fault or respective owner

Related posts about apache2

Related posts about .htaccess