Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Apache
- <VirtualHost *:443>
- ServerName https://[domain]
- RewriteEngine On
- RewriteCond %{HTTP:Connection} Upgrade [NC]
- RewriteCond %{HTTP:Upgrade} websocket [NC]
- RewriteRule /(.*) ws://localhost:4455/$1 [P,L]
- AllowEncodedSlashes NoDecode
- ProxyPass / http://localhost:4455/ nocanon
- ProxyPassReverse / http://localhost:4455/
- Include /etc/letsencrypt/options-ssl-apache.conf
- ServerAlias [domain]
- SSLCertificateFile /etc/letsencrypt/live/[domain]/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/[domain]/privkey.pem
- </VirtualHost>
- ## Equivalent in Caddy
- [domain] {
- reverse_proxy http://localhost:4455
- }
Advertisement
Add Comment
Please, Sign In to add comment