I have this configuration:
- HTTPS load balancer / SSL offloader on port 443
- Apache httpd on port 80 (different IP), using ProxyPass, ProxyPassReverse to forward to...
- multiple Glassfish domains listening on different ports
Problem: Neither Glassfish nor Apache is aware that the request is HTTPS. Redirects to URLs like "/index.jsp" are being rewritten in Glassfish as http://internal_ip/index.jsp
, then ProxyPassReverse rewrites to http://public_ip/index.jsp
. Problem is, I need that URL to be http*s*://public_ip/...
How do I fix that - is there some Glassfish configuration I can change, or Apache httpd.conf?