【发布时间】:2020-08-05 15:12:51
【问题描述】:
我在后面运行两台服务器和 AEBS 基站。 Server1 运行 10.12.6 和 Server 5.3.1 并使用 webapps 执行反向代理,如前体.ca 教程中所述。 这使我只有一个外部 IP 地址,其中 server1.mydomain 和 server2.mydomain 在内部进行分发。 这工作正常.. 但在 server2 上我运行 Filemaker Webdirect,它使用 Web 套接字。所以我在浏览器中得到一个 wss:// 错误。 我写的网络应用程序;
来自http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
RewriteEngine On
RewriteCond %{HTTPS} =off
RewriteRule . - [E=protocol:http,E=port:80]
RewriteCond %{HTTPS} =on
RewriteRule . - [E=protocol:https,E=port:443]
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPreserveHost On
ProxyPassReverse / http://1.2.3.4:443/
ProxyPass / http://1.2.3.4:443/
ServerName filemaker.precursor.ca
显然把我自己的server2的IP地址和它的名字..
但是 web 套接字 wss://server2.mydomain 不起作用.. 并且 web 直接失败。
我可以登录,但是一旦我打开一个 wss 连接,它就不再工作了。 .这是一个apache mod_proxy错误..
在我阅读的 apache 错误日志中 [Sun Apr 19 21:58:04.846046 2020] [proxy_http:error] [pid 598] (70008)部分结果有效但处理不完整:[client 189.62.112.162:49213] AH01110: error reading response
在我阅读的浏览器中
WebSocket connection to 'wss://fmserver.embatek.com.br/fmi/webd/PUSH?v-uiId=1&v-pushId=341172cf-5d45-454d-972e-3029de5807fa&X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.3.2.vaadin1-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&Content-Type=application/json;%20charset=UTF-8&X-atmo-protocol=true' failed: Unexpected response code: 500
关于在哪里摆弄的任何提示。 你的 皮埃尔
【问题讨论】:
标签: apache websocket reverse-proxy