You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Thomas Eckert <th...@gmail.com> on 2013/07/29 17:35:28 UTC
[users@httpd] 302 endless loop with mod_auth_form config
I'm looking for the erorr in this config :
KeepAlive OnServerName server1.domain1.localServerAdmin
me@domain1.localListen 10.10.10.10:80 http<Proxy
balancer://cd107d9706d71153bafd4ab15f1c6b5d>
BalancerMember http://server1.domain2.local
status=-SE</Proxy><VirtualHost 10.10.10.10:80>
ServerName secured.domain1.local
SSLProxyEngine On
RequestHeader set X-Forwarded-Proto http
DocumentRoot /var/www/login_example/
<Location /login/>
SetHandler form-login-handler
AuthFormLoginRequiredLocation
http://secured.domain1.org/login/example_form_template
AuthFormLoginSuccessLocation http://secured.domain1.org/
AuthFormProvider myprovider
AuthType form
AuthName realm
Session On
SessionCookieName session path=/
</Location>
<Location />
ProxyPass balancer://cd107d9706d71153bafd4ab15f1c6b5d/
lbmethod=bybusyness
ProxyPassReverse balancer://cd107d9706d71153bafd4ab15f1c6b5d/
AuthFormProvider myprovider
AuthType form
AuthName realm
AuthFormLoginRequiredLocation
http://secured.domain1.org/login/example_form_template
Session On
SessionCookieName session path=/
Require valid-user
</Location></VirtualHost>
Accessing / results in an endless loop of 302s to /login/. Putting
<LocationMatch ^/(?!login/)>
on the second block did not change anything.