You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Reid Watson <re...@auckland.ac.nz> on 2015/05/19 05:59:34 UTC

[users@httpd] Proxy pass fails with Spring Security

Hi Everyone, 

I was hoping someone could shed some light on the issue I’m receiving 

Issue 

Proxy pass to https://uccx-pri.auckland.ac.nz:8444/cuic/j_spring_security_check timeouts / hangs with a connection issue 

Log Snippet 

Access Log 

uccx-reports.dev.auckland.ac.nz: 127.0.0.1 - - [15/May/2015:17:20:42 +1200] "POST /cuic/j_spring_security_check?originalUrl= HTTP/1.1" 302 - "https://uccx-reports.dev.auckland.ac.nz/cuic/Login.htmx" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0"

Rewrite Log

127.0.0.1 - - [uccx-reports.dev.auckland.ac.nz/sid#7f275a8c8210][rid#7f2708002b20/initial] setting env variable 'host' to 'uccx-pri.auckland.ac.nz', referer: https://uccx-reports.dev.auckland.ac.nz/cuic/Login.htmx
127.0.0.1 - - [uccx-reports.dev.auckland.ac.nz/sid#7f275a8c8210][rid#7f2708002b20/initial] forcing proxy-throughput with https://uccx-pri.auckland.ac.nz:8444/cuic/j_spring_security_check, referer: https://uccx-reports.dev.auckland.ac.nz/cuic/Login.htmx
127.0.0.1 - - [uccx-reports.dev.auckland.ac.nz/sid#7f275a8c8210][rid#7f2708002b20/initial] go-ahead with proxy request proxy:https://uccx-pri.auckland.ac.nz:8444/cuic/j_spring_security_check [OK], referer: https://uccx-reports.dev.auckland.ac.nz/cuic/Login.htmx

Rewrite rule is very basic 

<IfDefine DEV>
	ServerName https://uccx-reports.dev.auckland.ac.nz
</IfDefine>

RewriteRule .* https://uccx-pri.auckland.ac.nz:8444$0 [L,P,QSA,E=host:uccx-pri.auckland.ac.nz]

Notes 

Bypassing Apache to Authenticate via Spring Security works correctly 
https://uccx-pri.auckland.ac.nz:8444/cuic/Login.htmx 

I don’t have direct access the backend server but would like to know if someone has come across a similar issue ?






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: [users@httpd] Proxy pass fails with Spring Security

Posted by Eric Covener <co...@gmail.com>.
On Mon, May 18, 2015 at 11:59 PM, Reid Watson
<re...@auckland.ac.nz> wrote:
> I don’t have direct access the backend server but would like to know if someone has come across a similar issue ?


Bad redirect or cookie path/domain? See ProxyPassReverse*

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org