X-Forwarded-Proto is not honored
I have a glassfish 126.96.36.199 instance running behind an AWS Elastic Load
Balancer, which terminates the SSL. I have deployed an app on glassfish
under /mycontext and there is nothing deployed on the root context path. My
application servlet handles "X-Forwarded-Proto" manually.
When I try to make a call to https://domain.com/mycontext/ everything works
as expected, however, when I try to call https://domain.com/mycontext with
no ending slash, I get a 301 and get redirected to http instead, which, my
load balancer is not listening for.
I have tried setting http.scheme-mapping to X-Forwarded-Proto:
or even by manually editing the domain.xml file, doesn't help.
Any further suggestions are really appreciated!