1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Update kiwix.conf.j2

This commit is contained in:
A Holt 2018-10-19 11:26:18 -04:00 committed by GitHub
parent bab333b3f1
commit 41d6cf4cb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,9 +8,9 @@ RedirectMatch ^{{ kiwix_alias_url }}$ {{ kiwix_url }}
# 2018-08-31: SUCCEEDS in enabling http://box/kiwix/ & http://box/kiwix/zim & http://box/kiwix/zim/ # 2018-08-31: SUCCEEDS in enabling http://box/kiwix/ & http://box/kiwix/zim & http://box/kiwix/zim/
#ProxyPreserveHost On #ProxyPreserveHost On
ProxyPass {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }} ProxyPass {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }}
12345678901234567890123456789012345678901234567890123456789012345678901234567890
# CLARIF: ProxyPassReverse rewrites internal links, that come back from proxy. # CLARIF: ProxyPassReverse rewrites internal links, that come back from Apache
# Whereas e.g. calibre-web.conf (and many others) use this, kiwix.conf doesn't # proxy. Whereas e.g. calibre-web.conf (and others) use this, kiwix.conf does
# as kiwix itself prefixes URLs, thanks to --urlRootLocation=/kiwix/ in kiwix's # not, as kiwix itself prefixes URLs thanks to --urlRootLocation=/kiwix/ in
# systemd file arising from roles/kiwix/templates/kiwix-serve.service.j2 # 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 }} #ProxyPassReverse {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }}