Skip to content
Discussion options

You must be logged in to vote

I think you forgot to include the ws path on the right side of the rule:

ProxyPass / http://192.168.10.201:28830/ws/ upgrade=websocket
ProxyPassReverse / http://192.168.10.201:28830/ws/ upgrade=websocket

Below my working vhost on apache

RewriteEngine On
ProxyRequests Off
ProxyPreserveHost On

RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"

RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule /ws/(.*) "ws://192.168.2.103:1865/ws/$1" [P,L]

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@pieroit
Comment options

@architectonio
Comment options

@architectonio
Comment options

@leorsida
Comment options

Answer selected by architectonio
@architectonio
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants