[英]Websocket with apache mod_proxy_wstunnel to tomcat with javax.servlet.request.X509Certificate
This is my Situation: 这是我的情况:
Browser<---HTTPS/WSS--->Apache-httpd<---HTTP/WS--->Tomcat(v7) 浏览器<--- HTTPS / WSS ---> Apache的httpd的<--- HTTP / WS --->的Tomcat(V7)
Is it possible to get the javax.servlet.request.X509Certificate in a Servlet Filter using mod_proxy_wstunnel reverse proxy? 是否可以使用mod_proxy_wstunnel反向代理在Servlet过滤器中获取javax.servlet.request.X509Certificate? Thats my config:
多数民众赞成在我的配置:
ProxyPass /ws ws://space4-20.<***>.ch:8080/ws nofailover=On ProxyPassReverse /ws ws://space4-20.<***>.ch:8080/ws ProxyPass / ajp://space4-20.<***>:8009/ nofailover=On ProxyPassReverse / ajp://space4-20.<***>:8009/
If i connect directly to the tomcat(without apache) i can access it like this: 如果我直接连接到tomcat(没有Apache),我可以这样访问它:
request.getAttribute("javax.servlet.request.X509Certificate");
But with the reverse proxy i don't have any attributes. 但是使用反向代理,我没有任何属性。 Is it maybe because between the apache and the tomcat there is no SSL?
是否可能是因为apache和tomcat之间没有SSL? But as I understood this doesn't matter, because if I do a normal HTTPS request i get all the SSL Information in the tomcat.
但是据我了解,这无关紧要,因为如果我执行普通的HTTPS请求,我会在tomcat中获取所有SSL信息。 I think thats because I have this:
我认为那是因为我有这个:
SSLOptions +StdEnvVars +ExportCertData
But I think mod_proxy_wstunnel doesn't use that config. 但是我认为mod_proxy_wstunnel不使用该配置。
Can somebody help me? 有人可以帮我吗? Thank you in advance!
先感谢您!
It IS because between the apache and the tomcat there is no SSL. 这是因为在apache和tomcat之间没有SSL。 For "normal" HTTPS, you are using AJP instead of HTTP.
对于“常规” HTTPS,您使用的是AJP而不是HTTP。 AJP pass authentication information to Tomcat.
AJP将身份验证信息传递给Tomcat。
Your "situation" really is: Browser<---HTTPS/WSS--->Apache-httpd<--- AJP /WS--->Tomcat(v7) 您的“情况”实际上是:浏览器<--- HTTPS / WSS ---> Apache-httpd <--- AJP / WS ---> Tomcat(v7)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.