ServerName {FQDN} ServerAdmin {Admin Email} #Forward once Websocket Connection has been upgraded. RewriteEngine On RewriteCond %{HTTP:Upgrade} =websocket [NC] RewriteRule /(.*) ws://localhost:5000/$1 [P,L] RewriteCond %{HTTP:Upgrade} !=websocket [NC] RewriteRule /(.*) http://localhost:5000/$1 [P,L] ProxyPreserveHost On #Proxy Requests to Remotely Server ProxyPass http://localhost:5000/ ProxyPassReverse http://localhost:5000/ ProxyPass http://localhost:5000/ ProxyPassReverse http://localhost:5000/ ProxyPass http://localhost:5000/ ProxyPassReverse http://localhost:5000/ ProxyPass http://localhost:5000/ ProxyPassReverse http://localhost:5000/ ProxyPass http://localhost:5000/ ProxyPassReverse http://localhost:5000/ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLCertificateFile {Path to fullchain.pem} SSLCertificateKeyFile {Path to key.pem} Include /etc/letsencrypt/options-ssl-apache.conf #Change this to wherever your apache options for LE are, or ignore if you don't use LE # vim: syntax=apache ts=4 sw=4 sts=4 sr noet