1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-28 01:39:29 +02:00

Enclose wss proxy directives in IfModule

So it should work even if mod_proxy_wstunnel isn't available (socket.io should fallback to another method like xhr-polling)
This commit is contained in:
Daniel Berteaud 2014-06-17 12:32:35 +02:00
parent 62e769a2b3
commit 75c683b8b4
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,7 @@
ProxyPass /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket
ProxyPassReverse /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket
<IfModule mod_proxy_wstunnel.so>
ProxyPass /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket
ProxyPassReverse /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket
</IfModule>
ProxyPass /socket.io/ http://localhost:8888/socket.io/
ProxyPassReverse /socket.io/ http://localhost:8888/socket.io/
AliasMatch ^/vroom/([a-z]{2}/)?(\d{10}/)?((js|css|img|fonts|snd)/.*) /opt/vroom/public/$3

View File

@ -8,8 +8,10 @@
ServerName vroom.example.com
SSLEngine on
DocumentRoot /opt/vroom/public
ProxyPass /socket.io/1/websocket ws://localhost:8889/socket.io/1/websocket
ProxyPassReverse /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket
<IfModule mod_proxy_wstunnel.so>
ProxyPass /socket.io/1/websocket ws://localhost:8889/socket.io/1/websocket
ProxyPassReverse /socket.io/1/websocket ws://localhost:8888/socket.io/1/websocket
</IfModule>
ProxyPass /socket.io/ http://localhost:8888/socket.io/
ProxyPassReverse /socket.io/ http://localhost:8888/socket.io/
AliasMatch ^/([a-z]{2}/)?(\d{10}/)?((js|css|img|fonts|snd)/.*) /opt/vroom/public/$3