[英]Glassfish HTTPS redirect behind SSL offloader and Apache
I have this configuration: 我有这个配置:
Problem: Neither Glassfish nor Apache is aware that the request is HTTPS. 问题:Glassfish和Apache都不知道请求是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
. 在Glassfish中,将重定向到类似“ /index.jsp”之类的URL的http://internal_ip/index.jsp
,然后ProxyPassReverse重写为http://public_ip/index.jsp
。 Problem is, I need that URL to be http*s*://public_ip/...
问题是,我需要该URL为http*s*://public_ip/...
How do I fix that - is there some Glassfish configuration I can change, or Apache httpd.conf? 我该如何解决-是否可以更改某些Glassfish配置或Apache httpd.conf?
I see two solutions to that: 我看到两种解决方案:
1) use your loadbalancer to manipulate apaches response (iRule in F5, flex for A10 loadbalancers etc.) 1)使用您的负载均衡器来操纵贴近响应(F5中的iRule,A10负载均衡器的flex等)
2) set up something on the loadbalancer to send another redirect to requests coming in via HTTP to use HTTPS 2)在负载均衡器上设置一些内容,以发送另一个重定向到通过HTTP进入的使用HTTPS的请求
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.