11
我有一個網絡套接字和我的反向代理Apache的問題,我在最新版本2.4.5中升級並加載模塊mod_proxy_wstunnel
。反向代理與websocket mod_proxy_wstunnel
httpd.conf中:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.toto.fr
ServerAlias toto.fr
ProxyPass /my_app http://1X.X.X.1:8080/my_app
ProxyPassReverse /web_pmr http://1X.X.X.1:8080/my_app
ProxyPassReverseCookiePath /my_app/
ProxyPassReverseCookieDomain localhost my_app
ProxyRequests off
ProxyTimeout 15
#WEBSOCKETS
ProxyPass /my_app/BasicWebsocketServlet ws://1X.X.X.1:8080/my_app/BasicWebsocketServlet retry=0
ProxyPassReverse /my_app/BasicWebsocketServlet ws://1X.X.X.1:8080/web_pmr/BasicWebsocketServlet retry=0
ErrorLog "logs/my_app_error.log"
LogLevel debug
CustomLog "logs/my_app_access.log" combined
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
當我在我的本地URL測試,的WebSockets正在而是用反向代理的Apache,還有在Tomcat中日誌無痕。
你是什麼意思「無痕」?請求是否被轉發到Tomcat? – jimjag