notify_push icon indicating copy to clipboard operation
notify_push copied to clipboard

Apache proxy configuration within Location directives with upgrade=websocket

Open chriscroome opened this issue 1 year ago • 2 comments

The Apache documentation could potentially be updated for Websocket Upgrade (2.4.47 and later), also I have found that using Location (note the Overlapping Webspace documentation) seems to work best, for example:

<Location "/push/">
  <IfModule proxy_module>
    ProxyPass "http://127.0.0.1:7867/"
    ProxyPassReverse "http://127.0.0.1:7867/"
  </IfModule>
</Location>
<Location "/push/ws">
  <IfModule proxy_module>
    ProxyPass "ws://127.0.0.1:7867/ws" upgrade=websocket
  </IfModule>
</Location>

chriscroome avatar Jan 30 '24 16:01 chriscroome

I couldn't establish the wss connection. image

IamTaoChen avatar Mar 23 '24 17:03 IamTaoChen

I couldn't establish the wss connection. image

maybe, this is a solution: add this "RewriteCond %{REQUEST_URI} !^/push [NC]" in <Location />

IamTaoChen avatar Mar 23 '24 17:03 IamTaoChen