RewriteEngine On AddType text/html .php .phps Include /etc/apache2/conf-available/doc_root.conf Redirect /4123 "https://logicmoo.org:14123" Redirect /14123 "https://logicmoo.org:14123" #ProxyPass /4123/static http://localhost:4123/static #ProxyPassReverse /4123/static http://localhost:4123/static # SetEnvIfNoCase User-Agent "DuckDuckGo|Abonti|aggregator|AhrefsBot|asterias|BDCbot|BLEXBot|BuiltBotTough|Bullseye|BunnySlippers|ca\-crawler|CCBot|Cegbfeieh|CheeseBot|CherryPicker|CopyRightCheck|cosmos|Crescent|discobot|DittoSpyder|DotBot|Download Ninja|EasouSpider|EmailCollector|EmailSiphon|EmailWolf|EroCrawler|Exabot|ExtractorPro|Fasterfox|FeedBooster|Foobot|Genieo|grub\-client|Harvest|hloader|httplib|HTTrack|humanlinks|ieautodiscovery|InfoNaviRobot|IstellaBot|Java/1\.|JennyBot|k2spider|Kenjin Spider|Keyword Density/0\.9|larbin|LexiBot|libWeb" bad_bot SetEnvIfNoCase User-Agent "LinkextractorPro|linko|LinkScan/8\.1a Unix|LinkWalker|LNSpiderguy|lwp\-trivial|magpie|Mata Hari|MaxPointCrawler|MegaIndex|Microsoft URL Control|MIIxpc|Mippin|Missigua Locator|Mister PiX|MJ12bot|moget|MSIECrawler|NetAnts" bad_bot # SetEnvIfNoCase User-Agent "NICErsPRO|Niki\-Bot|NPBot|Nutch|Offline Explorer|Openfind|panscient\.com|PHP/5\.\{|ProPowerBot/2\.14|ProWebWalker|Python\-urllib|QueryN Metasearch|RepoMonkey|RMA|SemrushBot|SeznamBot|SISTRIX|sitecheck\.Internetseer\.com|SiteSnagger|SnapPreviewBot|Sogou|SpankBot|spanner|spbot|Spinn3r|suzuran|Szukacz/1\.4|Teleport|Telesoft|The Intraformant|TheNomad|TightTwatBot|Titan|toCrawl/UrlDispatcher|True_Robot|turingos|TurnitinBot|UbiCrawler|UnisterBot|URLy Warning|VCI|WBSearchBot|Web Downloader/6\.9|Web Image Collector|WebAuto|WebBandit|WebCopier|WebEnhancer|WebmasterWorldForumBot|WebReaper|WebSauger|Website Quester|Webster Pro|WebStripper|WebZip|Wotbox|wsr\-agent|WWW\-Collector\-E|Xenu|Zao|Zeus|ZyBORG|coccoc|Incutio|lmspider|memoryBot|SemrushBot|serf|Unknown|uptime files" bad_bot # static html, js, images, etc. served from loolwsd # loleaflet is the client part of Collabora Online ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0 ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet # WOPI discovery URL ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0 ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery # Capabilities ProxyPass /hosting/capabilities https://127.0.0.1:9980/hosting/capabilities retry=0 ProxyPassReverse /hosting/capabilities https://127.0.0.1:9980/hosting/capabilities # Main websocket ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon # Admin Console websocket ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws # Download as, Fullscreen presentation and Image upload operations ProxyPass /lool https://127.0.0.1:9980/lool ProxyPassReverse /lool https://127.0.0.1:9980/lool ProxyPass /xwiki http://localhost:18080/xwiki ProxyPassReverse /xwiki http://localhost:18080/xwiki ProxyPass /sites/ http://10.0.0.132:80/sites/ ProxyPassReverse /sites http://10.0.0.132:80/sites ProxyPass /_ http://10.0.0.132:80/_ ProxyPassReverse /_ http://10.0.0.132:80/_ ProxyPass /_layouts http://10.0.0.132:80/_layouts ProxyPassReverse /_layouts http://10.0.0.132:80/_layouts ProxyPass /dokuwiki http://localhost:18088/dokuwiki ProxyPassReverse /dokuwiki http://localhost:18088/dokuwiki RewriteCond %{REQUEST_URI} ^/ace(.*) RewriteRule "^/(.*)" "http://localhost:4077%{REQUEST_URI}" [P,L] ProxyPass /ace http://localhost:4077/ace ProxyPassReverse /ace http://localhost:4077/ace ProxyPass /icons http://localhost:3020/icons #ProxyPass /3020/ http://localhost:3020 #ProxyPassReverse /3020/ http://localhost:3020 ProxyPass /pldoc http://localhost:3020/pldoc ProxyPass /plweb http://localhost:3020/plweb ProxyPass /swish http://localhost:3020/swish ProxyPass /pengine http://localhost:3020/pengine ProxyPass /pengines http://localhost:3020/pengines ProxyPass /css http://localhost:3020/css ProxyPass /help http://localhost:3020/help ProxyPass /js http://localhost:3020/js ProxyPass /node_modules http://localhost:3020/node_modules ProxyPass /oauth2 http://localhost:3020/oauth2 ProxyPass /ace/ http://localhost:3020/ace/ ProxyPass /filesystem http://localhost:3020/filesystem ProxyPass /opt http://localhost:3020/opt ProxyPass /e http://localhost:3020/e ProxyPass /p http://localhost:3020/p ProxyPass /filesystems http://localhost:3020/filesystems ProxyPass /help http://localhost:3020/help ProxyPass /cliopatria http://localhost:3020/cliopatria ProxyPass /admin http://localhost:3020/admin ProxyPass /browse http://localhost:3020/browse ProxyPass /cpack http://localhost:3020/cpack ProxyPass /home http://localhost:3020/home ProxyPass /servlets http://localhost:3020/servlets ProxyPass /user http://localhost:3020/users ProxyPass /yasgui http://localhost:3020/yasgui ProxyPass /swish/icons http://localhost:3020/swish/icons ProxyPass /icons http://localhost:3020/swish/icons ProxyPass /logicmoo http://localhost:3020/logicmoo ProxyPassReverse / https://logicmoo.org ProxyPassReverse / http://www.logicmoo.org ProxyPassReverse / https://www.logicmoo.org ProxyPassReverse / https://prologmoo.com ProxyPassReverse / http://prologmoo.com ProxyPassReverse / http://www.prologmoo.com ProxyPassReverse / https://www.prologmoo.com ProxyPassReverse /swish/icons http://localhost:3020/icons ProxyPassReverse /swish/icons http://localhost:3020/swish/icons ProxyPassReverse / http://localhost:3020 ProxyPassReverse / http://logicmoo.org:3020 ProxyPassReverse / https://www.swi-prolog.org ProxyPassReverse / https://edu.swi-prolog.org ProxyPassReverse / http://www.swi-prolog.org ProxyPassReverse / http://edu.swi-prolog.org ProxyRequests Off ProxyPreserveHost On RewriteEngine On #ProxyWebsocketFallbackToProxyHttp On ProxyPass "/swish/jseval_ws" "ws://localhost:3020/swish/jseval_ws" retry=0 keepalive=On ProxyPassReverse "/swish/jseval_ws" "ws://localhost:3020/swish/jseval_ws" retry=0 ProxyPass "/swish/jseval_sws" "ws://localhost:3020/swish/jseval_ws" retry=0 keepalive=On #ProxyPassMatch ^/(swish/jseval_sws)$ ws://localhost:3020/$1 #ProxyPass / ws://localhost:3020/ #ProxyPass / http://backend.example.com:9080/ RewriteCond %{HTTP:Connection} Upgrade [NC] RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteRule /(.*) ws://localhost:3020/$1 [P,L] ProxyPreserveHost On #ProxyVia on RewriteEngine On #Header always set X-Frame-Options "ALLOWAll" #Header always set X-Frame-Options "SAMEORIGIN" #Header always set X-UA-Compatible "IE=edge" #RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} #RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS} # RedirectMatch 301 ^/cgi-bin/cg(.*)$ https://logicmoo.org:13602/cgi-bin/cg$1 #Alias "/wiki" "/var/lib/mediawiki/" #RedirectMatch 301 ^/gitlab/gitlab(.*)$ /gitlab$1 RedirectMatch 301 ^/gitlab(.*)$ https://gitlab.logicmoo.org/gitlab$1 RedirectMatch 301 ^/jenkins(.*)$ https://jenkins.logicmoo.org/jenkins$1 #ProxyPass /jenkins http://localhost:28080/jenkins #ProxyPassReverse /jenkins http://localhost:28080/jenkins #ProxyPass /gitlab http://logicmoo.org:1082/gitlab/ #ProxyPassReverse /gitlab http://logicmoo.org:1082/gitlab/ #ProxyPassReverse /wiki/ http://wiki.cyc.com/wiki #ProxyPassReverse /wiki/ http://wiki.cyc.com #ProxyPassReverse / http://localhost:4088 #ProxyPassReverse / http://logicmoo.org:4088 RewriteCond %{HTTP:UPGRADE} !^WebSocket$ RewriteCond %{HTTP:CONNECTION} !^Upgrade$ RewriteCond %{SERVER_PORT} ^(80|443)$ RewriteCond %{REQUEST_URI} \.aspx [OR] RewriteCond %{REQUEST_URI} \.axd RewriteCond %{REQUEST_URI} !^/_.* RewriteCond %{REQUEST_URI} !^/\.well-known/microsoft-identity-association.json RewriteCond %{REQUEST_URI} !sites/.* RewriteCond %{REQUEST_URI} !^/telnet/(.*) RewriteCond %{REQUEST_URI} !^/4(.*) RewriteRule "^/(.*)" "http://10.0.0.132:80/$1" [P,L,E=rewritten:1,E=url:$1,QSA] Options Indexes FollowSymLinks MultiViews Options +Indexes +FollowSymLinks +MultiViews AllowOverride all IndexOptions FancyIndexing HTMLTable Options +Indexes +FollowSymLinks +MultiViews AllowOverride all IndexOptions FancyIndexing HTMLTable ProxyPass /bin http://localhost:38080/bin ProxyPassReverse /bin http://localhost:38080/bin ProxyPass /wiki http://localhost:38080/wiki ProxyPassReverse /wiki http://localhost:38080/wiki #ProxyPass /wiki http://localhost:38080/.../ #ProxyPassReverse /wiki http://localhost:38080/.../ RewriteCond %{HTTP:UPGRADE} !^WebSocket$ RewriteCond %{HTTP:CONNECTION} !^Upgrade$ RewriteCond %{SERVER_PORT} ^(80|443)$ RewriteCond %{REQUEST_URI} !^/4(.*) RewriteCond %{REQUEST_URI} !^/$ RewriteCond %{REQUEST_URI} !^/.git/(.*) RewriteCond %{REQUEST_URI} !^/\.well-known/ RewriteCond %{REQUEST_URI} !^/index.* RewriteCond %{REQUEST_URI} !^/old-index.* RewriteCond %{REQUEST_URI} !^/favicon.* RewriteCond %{REQUEST_URI} !^/public.* RewriteCond %{REQUEST_URI} !^/assets/.* RewriteCond %{REQUEST_URI} !^/vendor/.* RewriteCond %{REQUEST_URI} !^/wordpress.* RewriteCond %{REQUEST_URI} !^/shindig.* RewriteCond %{REQUEST_URI} !^/xw.* RewriteCond %{REQUEST_URI} !^/bin/(.*) RewriteCond %{REQUEST_URI} !^/wiki/(.*) RewriteCond %{REQUEST_URI} !^/do.* RewriteCond %{REQUEST_URI} !^/cyc.* RewriteCond %{REQUEST_URI} !^/ef.* RewriteCond %{REQUEST_URI} !^/shrdlu.* RewriteCond %{REQUEST_URI} !^/privacy.html RewriteCond %{REQUEST_URI} !^/gitlab.* RewriteCond %{REQUEST_URI} !^/jenkins.* RewriteCond %{REQUEST_URI} !^/bugzilla.* RewriteCond %{REQUEST_URI} !^/wiki.* RewriteCond %{REQUEST_URI} !^/static/(.*) RewriteCond %{REQUEST_URI} !^/telnet/(.*) RewriteCond %{REQUEST_URI} !^/ctl/(.*) RewriteCond %{REQUEST_URI} !^/ws/(.*) RewriteCond %{REQUEST_URI} !^/local\.js$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule "^/(.*)" "http://localhost:3020/$1" [P,L] RewriteEngine On RewriteCond %{HTTP:UPGRADE} !^WebSocket$ RewriteCond %{HTTP:CONNECTION} !^Upgrade$ RewriteCond %{SERVER_PORT} ^(80|443)$ RewriteCond %{REQUEST_URI} !^/telnet/(.*) RewriteCond %{REQUEST_URI} !^/local\.js$ RewriteCond %{REQUEST_URI} !^/static/(.*) RewriteCond %{REQUEST_URI} !^/xwiki/(.*) RewriteCond %{REQUEST_URI} !^/wiki/(.*) RewriteCond %{REQUEST_URI} !^/swish/(.*) RewriteCond %{REQUEST_URI} !^/public/(.*) RewriteCond %{REQUEST_URI} !^/gitlab/(.*) RewriteCond %{REQUEST_URI} !^/jenkins.* RewriteCond %{REQUEST_URI} !^/favicon.* RewriteCond %{REQUEST_URI} !^/home/(.*) RewriteCond %{REQUEST_URI} !^/api/(.*) RewriteCond %{REQUEST_URI} !^/ef/(.*) RewriteCond %{REQUEST_URI} !^/\.well-known/ RewriteCond %{REQUEST_URI} !^/4(.*) RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l #RewriteRule "^/(.*)" "https://logicmoo.org/xwiki/bin/view/Main/Search?text=$1&f_type=DOCUMENT&f_locale=en&f_locale=&r=1&f_space_facet=0%2FMain." [QSA,L] RewriteRule "^/(.*)" "https://logicmoo.org/xwiki/bin/view/Main/Search?text=$1&f_type=DOCUMENT&f_locale=en&f_locale=&r=1" #RewriteRule "^/(.*)" "https://logicmoo.org/xwiki/bin/view/Main/Search?text=$1&f_type=DOCUMENT&r=1"