# This is the HTTP example, ideally use Certbot/LetsEncrypt to encrypt the data transferred Servername diagramming.WEBSITE # Optionally use some basic auth to prevent access to anyone. AuthType Basic Authname "Password Required" AuthUserFile /etc/apache2/.htpasswd Require valid-user RewriteEngine On RewriteCond %{HTTP:Upgrade} =websocket [NC] RewriteRule /(.*) ws://localhost:7890/$1 [P,L] RewriteCond %{HTTP:Upgrade} !=websocket [NC] RewriteRule /(.*) http://localhost:7890/$1 [P,L] ProxyPass / http://localhost:7890/ ProxyPassReverse / http://localhost:7890/ ProxyPreserveHost On