Answers for "apache reverse websocket"

1

apache reverse websocket

<VirtualHost *:80>
  ServerName www.domain.com
 
  RewriteEngine On
  RewriteCond %{REQUEST_URI}  ^/socket.io            [NC]
  RewriteCond %{QUERY_STRING} transport=websocket    [NC]
  RewriteRule /(.*)           ws://localhost:5000/$1 [P,L]
 
  ProxyRequests Off 
  ProxyMaxForwards 100 
  ProxyPreserveHost On
  ProxyPass / http://localhost:5000/
  ProxyPassReverse / http://localhost:5000/
</VirtualHost>
Posted by: Guest on October-19-2020

Browse Popular Code Answers by Language