mirror of
https://github.com/dani/vroom.git
synced 2024-06-30 15:23:41 +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:
parent
62e769a2b3
commit
75c683b8b4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user