Redirect loop

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Redirect loop

Pooya Eslami
This post has NOT been accepted by the mailing list yet.
Hi everyone...

I have a plone site that serves on
Based on the plone docs I have a rewrite rule so to translate that ugliness to
I have cas enabled on the plone site for authentication and it works fine.
Several pages at the root level are available to public unfortunately. So to protect these pages via cas, I have installed the mod_auth_cas in apache.
Now the pages that were previously public are protected by cas, but if I try to go to the root site I get a redirect loop that keeps generating tickets and goes between cas and trying to validate.

here is my apache conf:

<VirtualHost *>
    ServerSignature On

    ProxyVia On

    <Proxy *>
        Order deny,allow
        Allow from all

    CASCookiePath    /var/cache/apache2/mod_auth_cas/
    CASDebug         on
    LogLevel         Debug

    RewriteEngine on
    RewriteRule ^/(.*) <a href="http://localhost:8080/VirtualHostBase/http/%">http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/intranet/VirtualHostRoot/$1 [P,L]

    <Location />
        CASScope on
        AuthType CAS
        require valid-user


Any advice will be appreciated. Thanks