1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

do everything with substitute

This commit is contained in:
George Hunt 2017-07-06 17:11:01 -07:00 committed by georgejhunt
parent 045d120244
commit 4aafe49443

View file

@ -1,39 +1,16 @@
<VirtualHost *:80>
ProxyRequests Off
ProxyVia Off
RewriteEngine on
ProxyPass /kalite http://127.0.0.1:8008
ProxyPassReverse /kalite http://127.0.0.1:8008
ProxyPass "/learn" "http://127.0.0.1:8008/learn"
ProxyPassReverse "/learn" "http://127.0.0.1:8008/learn"
ProxyPass "/kalite_mgmt" "http://127.0.0.1:8008/management"
ProxyPassReverse "/kalite_mgmt" "http://127.0.0.1:8008/management"
ProxyPass "/coachreports" "http://127.0.0.1:8008/coachreports"
ProxyPassReverse "/coachreports" "http://127.0.0.1:8008/coachreports"
ProxyPass "/static" "http://127.0.0.1:8008/static"
ProxyPassReverse "/static" "http://127.0.0.1:8008/static"
ProxyPass "/update" "http://127.0.0.1:8008/update"
ProxyPassReverse "/update" "http://127.0.0.1:8008/update"
ProxyPass "/_generated" "http://127.0.0.1:8008/_generated"
ProxyPassReverse "/_generated" "http://127.0.0.1:8008/_generated"
ProxyPass "/securesync" "http://127.0.0.1:8008/securesync"
ProxyPassReverse "/securesync" "http://127.0.0.1:8008/securesync"
ProxyPass "/api" "http://127.0.0.1:8008/api"
ProxyPassReverse "/api" "http://127.0.0.1:8008/api"
ProxyPass "/kalite_content" "http://127.0.0.1:8008/content"
ProxyPassReverse "/kalite_content" "http://127.0.0.1:8008/content"
RewriteRule "^/kalite(.*)" "http://127.0.0.1:8008$1"
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|/management/|/kalite_mgmt/|i"
Substitute "s|/content/|/kalite_content/|i"
Substitute "s|/management/|/kalite/management/|i"
Substitute "s|/coachreports/|/kalite/coachreports/|i"
Substitute "s|/static/|/kalite/static/|i"
Substitute "s|/update/|/kalite/update/|i"
Substitute "s|/_generated/|/kalite/_generated/|i"
Substitute "s|/securesync/|/kalite/securesync/|i"
Substitute "s|/api/|/kalite/api/|i"
Substitute "s|/content/|/kalite/content/|i"
</VirtualHost >