Listen 1$port
Include /etc/apache2/conf-available/doc_root_ssl.conf
RewriteCond %{HTTP:UPGRADE} !^WebSocket$
RewriteCond %{HTTP:CONNECTION} !^Upgrade$
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^$
RewriteCond %{REQUEST_URI} !^/ef
RewriteCond %{REQUEST_URI} !^/shrdlu
RewriteCond %{REQUEST_URI} !^/static
RewriteCond %{REQUEST_URI} !^/xwiki
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} ^/swish_config.json [OR]
RewriteCond %{REQUEST_URI} ^/swish [OR]
RewriteCond %{REQUEST_URI} ^/www/ [OR]
RewriteCond %{REQUEST_URI} ^/css [OR]
RewriteCond %{REQUEST_URI} ^/pengine [OR]
RewriteCond %{REQUEST_URI} ^/icons [OR]
RewriteCond %{REQUEST_URI} ^/lps [OR]
RewriteCond %{REQUEST_URI} ^/logicmoo [OR]
RewriteCond %{REQUEST_URI} ^/home [OR]
RewriteCond %{REQUEST_URI} ^/admin [OR]
RewriteCond %{REQUEST_URI} ^/users [OR]
RewriteCond %{REQUEST_URI} ^/admin [OR]
RewriteCond %{REQUEST_URI} ^/help [OR]
RewriteCond %{REQUEST_URI} ^/openid [OR]
RewriteCond %{REQUEST_URI} ^/tutorial [OR]
RewriteCond %{REQUEST_URI} ^/tutorials [OR]
RewriteCond %{REQUEST_URI} ^/node_modules
RewriteRule "^/(.*)" "http://localhost:3020%{REQUEST_URI}" [P,L]
RewriteCond %{REQUEST_URI} ^/ace
RewriteRule "^/(.*)" "http://localhost:4077%{REQUEST_URI}" [P,L]
RewriteCond %{HTTP:UPGRADE} !^WebSocket$
RewriteCond %{HTTP:CONNECTION} !^Upgrade$
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} !^/swish/
RewriteCond %{REQUEST_URI} !^/www/
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^$
RewriteCond %{REQUEST_URI} ^/shrdlu/ [OR]
RewriteCond %{REQUEST_URI} ^/ef/ [OR]
RewriteCond %{REQUEST_URI} ^/public/ [OR]
RewriteCond %{REQUEST_URI} ^/fav(.*) [OR]
RewriteCond %{REQUEST_URI} ^/xwiki
RewriteRule "^/(.*)" "http://localhost:80%{REQUEST_URI}" [P,L]
RewriteCond %{HTTP:UPGRADE} !^WebSocket$
RewriteCond %{HTTP:CONNECTION} !^Upgrade$
RewriteCond %{REQUEST_URI} !^/ef/
RewriteCond %{REQUEST_URI} !^/shrdlu/
RewriteCond %{REQUEST_URI} !^/filesystem
RewriteCond %{REQUEST_URI} !^/users/
RewriteCond %{REQUEST_URI} !^/logicmoo/
RewriteCond %{REQUEST_URI} !^/fav
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_URI} !^/tutorial
RewriteCond %{REQUEST_URI} !^/swish/
RewriteCond %{REQUEST_URI} !^/www/
RewriteCond %{REQUEST_URI} !^/pengine/
RewriteCond %{REQUEST_URI} !^/openid/
RewriteCond %{REQUEST_URI} !^/node_modules/
RewriteCond %{REQUEST_URI} !^/lps/
RewriteCond %{REQUEST_URI} !^/icons/
RewriteCond %{REQUEST_URI} !^/home/
RewriteCond %{REQUEST_URI} !^/help/
RewriteCond %{REQUEST_URI} !^/css/
RewriteCond %{REQUEST_URI} !^/admin/
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} ^/index.html [OR]
RewriteCond %{REQUEST_URI} ^/static/ [OR]
RewriteCond %{REQUEST_URI} ^$ [OR]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule .* "http://localhost:$port%{REQUEST_URI}" [P,L]
RewriteCond %{REQUEST_URI} !^/ef/
RewriteCond %{REQUEST_URI} !^/www/
RewriteCond %{REQUEST_URI} !^/shrdlu/
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} !^/filesystem
RewriteCond %{REQUEST_URI} !^/swish/
RewriteCond %{REQUEST_URI} !^/pengine/
RewriteCond %{REQUEST_URI} !^/lps/
RewriteCond %{REQUEST_URI} !^/openid/
RewriteCond %{REQUEST_URI} !^/node_modules/
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* "ws://localhost:$port%{REQUEST_URI}" [P,L]
#ProxyPass /icons http://localhost:3020/icons
#ProxyPass /lps http://localhost:3020/lps
#ProxyPass /ef http://localhost:80/ef
ProxyPassReverse / http://localhost:80
ProxyPassReverse / http://localhost:3020
ProxyPassReverse / http://localhost:$port
ProxyPassReverse / http://localhost:4077
ProxyPass / http://localhost:$port/
Listen 1$port
Include /etc/apache2/conf-available/doc_root_ssl.conf
#RewriteCond %{REQUEST_URI} ^/ace
#RewriteRule "^/(.*)" "http://localhost:4077%{REQUEST_URI}" [P,L]
RewriteCond %{HTTP:UPGRADE} !^WebSocket$
RewriteCond %{HTTP:CONNECTION} !^Upgrade$
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} !^/swish/
RewriteCond %{REQUEST_URI} !^/www/
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^$
RewriteCond %{REQUEST_URI} ^/shrdlu/ [OR]
RewriteCond %{REQUEST_URI} ^/ef/ [OR]
RewriteCond %{REQUEST_URI} ^/public/ [OR]
RewriteCond %{REQUEST_URI} ^/fav(.*) [OR]
RewriteCond %{REQUEST_URI} ^/xwiki
RewriteRule "^/(.*)" "http://localhost:80%{REQUEST_URI}" [P,L]
RewriteCond %{HTTP:UPGRADE} !^WebSocket$
RewriteCond %{HTTP:CONNECTION} !^Upgrade$
RewriteCond %{REQUEST_URI} !^/ef/
RewriteCond %{REQUEST_URI} !^/shrdlu/
RewriteCond %{REQUEST_URI} !^/filesystem
RewriteCond %{REQUEST_URI} !^/users/
RewriteCond %{REQUEST_URI} !^/logicmoo/
RewriteCond %{REQUEST_URI} !^/fav
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_URI} !^/tutorial
RewriteCond %{REQUEST_URI} !^/swish/
RewriteCond %{REQUEST_URI} !^/www/
RewriteCond %{REQUEST_URI} !^/pengine/
RewriteCond %{REQUEST_URI} !^/openid/
RewriteCond %{REQUEST_URI} !^/node_modules/
RewriteCond %{REQUEST_URI} !^/lps/
RewriteCond %{REQUEST_URI} !^/icons/
RewriteCond %{REQUEST_URI} !^/home/
RewriteCond %{REQUEST_URI} !^/help/
RewriteCond %{REQUEST_URI} !^/css/
RewriteCond %{REQUEST_URI} !^/admin/
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} ^/index.html [OR]
RewriteCond %{REQUEST_URI} ^/static/ [OR]
RewriteCond %{REQUEST_URI} ^$ [OR]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule .* "http://localhost:$port%{REQUEST_URI}" [P,L]
RewriteCond %{REQUEST_URI} !^/ef/
RewriteCond %{REQUEST_URI} !^/www/
RewriteCond %{REQUEST_URI} !^/shrdlu/
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} !^/filesystem
RewriteCond %{REQUEST_URI} !^/swish/
RewriteCond %{REQUEST_URI} !^/pengine/
RewriteCond %{REQUEST_URI} !^/lps/
RewriteCond %{REQUEST_URI} !^/openid/
RewriteCond %{REQUEST_URI} !^/node_modules/
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* "ws://localhost:$port%{REQUEST_URI}" [P,L]
#ProxyPass /icons http://localhost:3020/icons
#ProxyPass /lps http://localhost:3020/lps
#ProxyPass /ef http://localhost:80/ef
ProxyPassReverse / http://localhost:80
ProxyPassReverse / http://localhost:3020
ProxyPassReverse / http://localhost:$port
ProxyPassReverse / http://localhost:4077
ProxyPass / http://localhost:$port/
Listen 2$port
Include /etc/apache2/conf-available/doc_root_ssl.conf
#RewriteCond %{REQUEST_URI} ^/ace
#RewriteRule "^/(.*)" "http://$hostname:4077%{REQUEST_URI}" [P,L]
RewriteCond %{HTTP:UPGRADE} !^WebSocket$
RewriteCond %{HTTP:CONNECTION} !^Upgrade$
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} !^/swish/
RewriteCond %{REQUEST_URI} !^/www/
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^$
RewriteCond %{REQUEST_URI} ^/shrdlu/ [OR]
RewriteCond %{REQUEST_URI} ^/ef/ [OR]
RewriteCond %{REQUEST_URI} ^/public/ [OR]
RewriteCond %{REQUEST_URI} ^/fav(.*) [OR]
RewriteCond %{REQUEST_URI} ^/xwiki
RewriteRule "^/(.*)" "http://$hostname:80%{REQUEST_URI}" [P,L]
RewriteCond %{HTTP:UPGRADE} !^WebSocket$
RewriteCond %{HTTP:CONNECTION} !^Upgrade$
RewriteCond %{REQUEST_URI} !^/ef/
RewriteCond %{REQUEST_URI} !^/shrdlu/
RewriteCond %{REQUEST_URI} !^/filesystem
RewriteCond %{REQUEST_URI} !^/users/
RewriteCond %{REQUEST_URI} !^/logicmoo/
RewriteCond %{REQUEST_URI} !^/fav
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_URI} !^/tutorial
RewriteCond %{REQUEST_URI} !^/swish/
RewriteCond %{REQUEST_URI} !^/www/
RewriteCond %{REQUEST_URI} !^/pengine/
RewriteCond %{REQUEST_URI} !^/openid/
RewriteCond %{REQUEST_URI} !^/node_modules/
RewriteCond %{REQUEST_URI} !^/lps/
RewriteCond %{REQUEST_URI} !^/icons/
RewriteCond %{REQUEST_URI} !^/home/
RewriteCond %{REQUEST_URI} !^/help/
RewriteCond %{REQUEST_URI} !^/css/
RewriteCond %{REQUEST_URI} !^/admin/
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} ^/index.html [OR]
RewriteCond %{REQUEST_URI} ^/static/ [OR]
RewriteCond %{REQUEST_URI} ^$ [OR]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule .* "http://$hostname:$port%{REQUEST_URI}" [P,L]
RewriteCond %{REQUEST_URI} !^/ef/
RewriteCond %{REQUEST_URI} !^/www/
RewriteCond %{REQUEST_URI} !^/shrdlu/
RewriteCond %{REQUEST_URI} !^/ace
RewriteCond %{REQUEST_URI} !^/filesystem
RewriteCond %{REQUEST_URI} !^/swish/
RewriteCond %{REQUEST_URI} !^/pengine/
RewriteCond %{REQUEST_URI} !^/lps/
RewriteCond %{REQUEST_URI} !^/openid/
RewriteCond %{REQUEST_URI} !^/node_modules/
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* "ws://$hostname:$port%{REQUEST_URI}" [P,L]
#ProxyPass /icons http://localhost:3020/icons
#ProxyPass /lps http://localhost:3020/lps
#ProxyPass /ef http://localhost:80/ef
ProxyPassReverse / http://$hostname:80
ProxyPassReverse / http://$hostname:3020
ProxyPassReverse / http://$hostname:$port
ProxyPassReverse / http://$hostname:4077
ProxyPass / http://$hostname:$port/
Use Butterfly 4100
Use Butterfly 4101
Use Butterfly 4102
Use Butterfly 4104
Use Butterfly 4123
Use Butterfly 4180
Use Butterfly 4188
Listen 14077
Include /etc/apache2/conf-available/doc_root_ssl.conf
ProxyPass / http://localhost:4077/
ProxyPassReverse / http://localhost:4077
Listen 14302
Include /etc/apache2/conf-available/doc_root_ssl.conf
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* "ws://localhost:3020%{REQUEST_URI}" [P,L]
Listen 13602
Include /etc/apache2/conf-available/doc_root_ssl.conf
ProxyPass / http://localhost:3602/
ProxyPassReverse / http://localhost:3602
Listen 13603
Include /etc/apache2/conf-available/doc_root_ssl.conf
ProxyPass / http://localhost:3603/
ProxyPassReverse / http://localhost:3603
Listen 13606
Include /etc/apache2/conf-available/doc_root_ssl.conf
ProxyPass / http://localhost:3606/
ProxyPassReverse / http://localhost:3606
Listen 28083
Include /etc/apache2/conf-available/doc_root_ssl.conf
ProxyPass / http://localhost:28080/
ProxyPassReverse / http://localhost:28080/
#ProxyPreserveHost Off
#RedirectMatch 301 ^/jenkins/(.*)$ https://jenkins.logicmoo.org/$1
ServerName $name.logicmoo.org
ProxyPreserveHost On
ProxyPass / http://localhost:$port/
ProxyPassReverse / http://localhost:$port/
#ProxyPass /$name http://localhost:$port/$name
#ProxyPassReverse /$name http://localhost:$port/$name
DocumentRoot /var/www
Include /etc/apache2/conf-available/ssl_no_server_name_or_doc_root.conf
#RewriteCond %{REQUEST_URI} !^/$name/
#RewriteRule ^(.*)$ /$1 [L]
ServerName $name.logicmoo.org
Include /etc/apache2/conf-available/ssl_no_server_name_or_doc_root.conf
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:$port/ nocanon
ProxyPass /jenkins http://localhost:$port/ nocanon
ProxyPassReverse / http://localhost:$port/
ProxyPassReverse / http://localhost:$port/$name
ProxyPassReverse / http://$name.logicmoo.org/$name
ProxyPassReverse / https://localhost:$port/
ProxyPassReverse / https://localhost:$port/$name
ProxyPassReverse / https://$name.logicmoo.org/$name
RequestHeader set X-Forwarded-Port "443"
RequestHeader set X-Forwarded-Proto "https"
RewriteRule ^/$name/(.*)$ http://localhost:$port/$1 [P,L]
SetEnv proxy-nokeepalive 1
AllowEncodedSlashes NoDecode
DocumentRoot /var/www
Use NamedVSub jenkins 28080
Use NamedVS bamboo 8085
Use NamedVS gitlab 1082
Use NamedVS xwiki 18080
Use NamedVS swish 3020
Use NamedVS mud 5001
Use Butterfly 7771
Use ButterThru 1766
Use ButterThruHost 10.0.0.122 1766
Use ButterThru 3020
Use ButterThru 1666
Use ButterThru 8501