Tomcat through apache mod_proxy reverse proxy

Do anyobody have a setup where Cuba app is deployed inside a Tomcat container on localhost and for the world there is an apache which is use reverse proxy (mod_proxy) for serving the cuba app.
So HTTP-> Apache -> Tomcat (Cuba app)
I can’t configure the reverse proxy, always get “Session expired” message on login page.

Thanks in advance,

Screen Shot 2017-02-07 at 16.11.21

1 Like


Could you attach server responses by /uidl URL from Chrome developer console that are received by browser when you open an application page ?


POST /UIDL/?v-uiId=0 HTTP/1.1
Connection: keep-alive
Content-Length: 237
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Content-Type: application/json; charset=UTF-8
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: hu,en-US;q=0.8,en;q=0.6
Cookie: __utma=104228885.655614747.1429099203.1429099203.1429099203.1; __utmc=104228885; _ga=GA1.2.655614747.1429099203


for(;;);[{"changes":{},"resources":{},"locales":{},"meta":{"appError":{"caption":"Cookies disabled","url":null,"message":"This application requires cookies to function.<br/>Please enable cookies in your browser and <u>click here</u> or press ESC to try again.","details":null}},"syncId":-1}]

It seems that your proxy does not resend headers for cookies. Can you check if you are properly configured cookies on proxy? Also, please ensure that you use stickysession mode, it is the only option that is required from load balancing proxy.

Thanks for your cookie settings hint. That was the key. Here is the link which solved our problem.

This was the key line:
ProxyPassReverseCookiePath /myapp /

Thanks for your fast answer.

1 Like