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

29 lines
1.2 KiB
Text
Raw Normal View History

2019-03-13 05:56:30 +00:00
# SEE ALSO: https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy
2018-10-14 02:05:48 +00:00
# Line used to work (in August 2018) but prevented http://box/books from working in October 2018: https://github.com/iiab/iiab/issues/1196
2018-10-11 00:44:08 +00:00
#<VirtualHost *:80>
# Unnec when "{{ calibreweb_url1 }}" is added to Proxy* directive(s) further below
# <Location "{{ calibreweb_url1 }}" >
2018-10-11 00:44:08 +00:00
# 2019-07-14: this line remains necessary (page barely renders without it!)
RequestHeader set X-SCRIPT-NAME {{ calibreweb_url1 }}
2018-10-11 00:44:08 +00:00
# Appears unnec:
#RequestHeader set X-SCHEME http
2018-10-11 00:44:08 +00:00
ProxyPass {{ calibreweb_url1 }} http://localhost:{{ calibreweb_port }}/
ProxyPass {{ calibreweb_url2 }} http://localhost:{{ calibreweb_port }}/
ProxyPass {{ calibreweb_url3 }} http://localhost:{{ calibreweb_port }}/
2018-10-11 00:44:08 +00:00
2018-10-19 15:14:21 +00:00
# Possibly unnec? (ProxyPassReverse rewrites internal links, that come back
2018-10-19 15:24:10 +00:00
# from Apache proxy. Whereas e.g. kiwix.conf doesn't need this, as kiwix itself
2018-10-19 15:14:21 +00:00
# prefixes URLs, thanks to --urlRootLocation=/kiwix/ in its systemd file.)
ProxyPassReverse {{ calibreweb_url1 }} http://localhost:{{ calibreweb_port }}/
ProxyPassReverse {{ calibreweb_url2 }} http://localhost:{{ calibreweb_port }}/
ProxyPassReverse {{ calibreweb_url3 }} http://localhost:{{ calibreweb_port }}/
2018-10-11 00:44:08 +00:00
2018-10-11 00:19:22 +00:00
# </Location>
2018-10-11 00:44:08 +00:00
2018-10-11 00:19:22 +00:00
#</VirtualHost>