Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache proxy configuration within Location directives with upgrade=websocket #388

Open
chriscroome opened this issue Jan 30, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@chriscroome
Copy link

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>
@joshtrichards joshtrichards added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 9, 2024
@IamTaoChen
Copy link

I couldn't establish the wss connection.
image

@IamTaoChen
Copy link

I couldn't establish the wss connection. image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants