ServerName ${SERVER_NAME} # Redirect to HTTPS (uncomment when SSL is configured) # Redirect permanent / https://${SERVER_NAME}/ ProxyPreserveHost On ProxyPass / http://127.0.0.1:8000/ ProxyPassReverse / http://127.0.0.1:8000/ # WebSocket support for PyShiny RewriteEngine On RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule ^/?(.*) "ws://127.0.0.1:8000/$1" [P,L] ErrorLog ${APACHE_LOG_DIR}/splicing-error.log CustomLog ${APACHE_LOG_DIR}/splicing-access.log combined # HTTPS configuration (uncomment when SSL is ready) # # ServerName ${SERVER_NAME} # # SSLEngine on # SSLCertificateFile /etc/ssl/certs/${SERVER_NAME}.crt # SSLCertificateKeyFile /etc/ssl/private/${SERVER_NAME}.key # # ProxyPreserveHost On # ProxyPass / http://127.0.0.1:8000/ # ProxyPassReverse / http://127.0.0.1:8000/ # # RewriteEngine On # RewriteCond %{HTTP:Upgrade} websocket [NC] # RewriteCond %{HTTP:Connection} upgrade [NC] # RewriteRule ^/?(.*) "ws://127.0.0.1:8000/$1" [P,L] # # ErrorLog ${APACHE_LOG_DIR}/splicing-error.log # CustomLog ${APACHE_LOG_DIR}/splicing-access.log combined #