1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/kiwix/templates/kiwix.conf.j2

19 lines
933 B
Text
Raw Normal View History

# SEE https://github.com/iiab/iiab/blob/master/roles/kolibri/templates/kolibri.conf.j2
# 2018-08-31: FAILS to enable http://box/kiwix
#RewriteEngine on
2020-02-14 01:31:34 +00:00
#RewriteRule ^{{ kiwix_url }}$ {{ kiwix_url_plus_slash }} [R]
# 2018-08-31: SUCCEEDS in enabling http://box/kiwix
2020-02-14 01:31:34 +00:00
RedirectMatch ^{{ kiwix_url }}$ {{ kiwix_url_plus_slash }}
2018-08-31 04:32:38 +00:00
# 2018-08-31: SUCCEEDS in enabling http://box/kiwix/ & http://box/kiwix/zim & http://box/kiwix/zim/
#ProxyPreserveHost On
2020-02-14 01:31:34 +00:00
ProxyPass {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url_plus_slash }}
2018-10-19 15:26:43 +00:00
2018-10-19 15:26:18 +00:00
# CLARIF: ProxyPassReverse rewrites internal links, that come back from Apache
# proxy. Whereas e.g. calibre-web.conf (and others) use this, kiwix.conf does
# not, as kiwix itself prefixes URLs thanks to --urlRootLocation=/kiwix/ in
# kiwix's systemd file arising from roles/kiwix/templates/kiwix-serve.service.j2
#ProxyPassReverse {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }}