Closed WolfgangFahl closed 8 months ago
ngdemo -d --apache bitplan.com
# Apache Configuration for ngdemo.bitplan.com # ngwidgets Version 0.11.0 of 2024-02-03 #NiceGUI widgets # Generated by WebserverCmd at 2024-02-04T13:43:18.779586 # http Port: 9856 # SSL Port: 443 # (c)2023-2024 Wolfgang Fahl # timeout: True <VirtualHost *:443> ServerName ngdemo.bitplan.com ServerAdmin webmaster@bitplan.com Include ssl.conf ErrorLog ${APACHE_LOG_DIR}/ngdemo_error_ssl.log CustomLog ${APACHE_LOG_DIR}/ngdemo_ssl.log combined RewriteEngine On RewriteCond %{HTTP:Upgrade} =websocket [NC] RewriteRule /(.*) wss://localhost:9856/$1 [P,L] RewriteCond %{HTTP:Upgrade} !==websocket [NC] RewriteRule /(.*) https://localhost:9856/$1 [P,L] ProxyPassReverse / https://localhost:9856/ </VirtualHost> <VirtualHost *:80> ServerName ngdemo.bitplan.com ServerAdmin webmaster@bitplan.com ErrorLog ${APACHE_LOG_DIR}/ngdemo_error.log CustomLog ${APACHE_LOG_DIR}/ngdemo.log combined RewriteEngine On RewriteCond %{HTTP:Upgrade} !=websocket [NC] RewriteRule /(.*) ws://localhost:9856/$1 [P,L] RewriteCond %{HTTP:Upgrade} !=!=websocket [NC] RewriteRule /(.*) http://localhost:9856/$1 [P,L] ProxyPassReverse / http://localhost:9856/ </VirtualHost>