I've been trying to get this working and don't know where it's going wrong.
In the apache config I have the following section:
<Directory /var/www/html/>
AuthType Kerberos
AuthName "Login"
KrbMethodNegotiate on
KrbMethodK5Passwd on
KrbAuthRealms EXAMPLE.LOCAL
KrbServiceName HTTP/example.local@EXAMPLE.LOCAL
Krb5KeyTab /etc/httpd/conf/http.keytab
<RequireAny>
Require valid-user
Require local
Require ip 192.168.2.190
Require expr %{REQUEST_URI} =~ m#/my/InvalidCredentials#
Require expr %{REQUEST_URI} =~ m#/my/PublicPage/*#
</RequireAny>
</Directory>
The pages I'm trying to exclude from the authentication are like this:
All but the Require expr statements are working, the expressions must be wrong, but no idea what is wrong with it.