%20%E5%8D%94%E5%AE%9A%E4%B8%AD%E7%B9%BC%E5%88%B0%E5%BE%8C%E7%AB%AF.png)
我正在使用 Apache 2.4.27。我需要wss
透過 Apache 反向代理將客戶端的請求傳輸到後端伺服器。然而,從 tcpdump 來看,該wss
請求似乎被 Apache 伺服器拒絕。所以我正在嘗試調試第一跳。
客戶端發出wss
請求:
wss://apache-server/wss/app
Apache error_log 顯示:
AH01144: No protocol handler was valid for the URL /wss/app. If you are
using a DSO version of mod_proxy, make sure the proxy submodules are
included in the configuration using LoadModule.
同時,在我的 httpd_access_log 中:
HTTP/1.1 "GET /wss/app HTTP/1.1" 500 528
看起來,Apache 將其解釋為HTTP/1.1 GET
請求而不是wss
。這是真的嗎?
我需要 Apache 接受wss
連接並將其中繼/隧道到後端伺服器。
Apache 2.4.27 能夠接受wss
連線嗎?我是否需要一些未與 Apache 2.4.27 捆綁在一起的其他協定模組? [我看見Apache-WebSocket,但它已經有 6 年曆史了,所以我猜它已經不存在了。
任何進一步調試的建議也將不勝感激。
PS:我已經加載了:、、、、、、和mod_proxy
其他一堆。mod_proxy_wstunnel
mod_proxy_http
mod_proxy_html
mod_proxy_connect
mod_proxy_ajp