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.
POST /UIDL/?v-uiId=0 HTTP/1.1
Host: http://app.domain.com
Connection: keep-alive
Content-Length: 237
Pragma: no-cache
Cache-Control: no-cache
Origin: http://app.domain.com
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: */*
Referer: http://app.domain.com/
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
Response:
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.