Skip to content

Instantly share code, notes, and snippets.

@olafj
Created January 7, 2022 10:54
Show Gist options
  • Save olafj/dba7f0087e249b6ac837d694665ecd0d to your computer and use it in GitHub Desktop.
Save olafj/dba7f0087e249b6ac837d694665ecd0d to your computer and use it in GitHub Desktop.
tunneling websocket apache 2.4. tomcat9 / spring-boot / stomp
<Location /<YOUT_CONTEXT>/chat-socket>
Require all granted
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^websocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://localhost:8080%{REQUEST_URI} [P]
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment