Skip to content

Commit

Permalink
Merge pull request #199 from semidark/patch-1
Browse files Browse the repository at this point in the history
Add WebSocket Support to Apache documentation
  • Loading branch information
justinh-rahb authored Aug 30, 2024
2 parents a359d3a + ae2e9f0 commit 502600e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/tutorial/apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ For the UI configuration, you can set up the Apache VirtualHost as follows:
ProxyPass / http://server.com:3000/ nocanon
ProxyPassReverse / http://server.com:3000/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://server.com:3000/$1" [P,L]
</VirtualHost>
```

Expand All @@ -48,6 +52,11 @@ _Normally, mod_proxy will canonicalise ProxyPassed URLs. But this may be incompa
ProxyPass / http://server.com:3000/ nocanon
ProxyPassReverse / http://server.com:3000/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://server.com:3000/$1" [P,L]
SSLEngine on
SSLCertificateFile /etc/ssl/virtualmin/170514456861234/ssl.cert
SSLCertificateKeyFile /etc/ssl/virtualmin/170514456861234/ssl.key
Expand Down

0 comments on commit 502600e

Please sign in to comment.