2015-07-03 71 views

回答

2

的解決方案是使用重寫規則:

RewriteEngine On 
RewriteCond %{HTTP:Upgrade} =websocket 
RewriteRule /(.*)   ws://localhost:9001/api/$1 [P,L] 
RewriteCond %{HTTP:Upgrade} !=websocket 
RewriteRule /(.*)   http://localhost:9001/api/$1 [P,L] 
+0

不適合我。我有我的節點websocket(ws)運行超過5000.我想將ws請求路由到wss – cyberrspiritt

相關問題