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>
|
|
|
|
|
2018-10-14 02:05:48 +00:00
|
|
|
# Unnec when "{{ calibreweb_url }}" is added to Proxy* directive(s) further below
|
2018-10-11 00:44:08 +00:00
|
|
|
# <Location "{{ calibreweb_url }}" >
|
|
|
|
|
2019-07-14 14:38:38 +00:00
|
|
|
# 2019-07-14: this line remains necessary (page barely renders without it!)
|
2018-10-11 00:19:22 +00:00
|
|
|
RequestHeader set X-SCRIPT-NAME {{ calibreweb_url }}
|
2018-10-11 00:44:08 +00:00
|
|
|
|
|
|
|
# Appears unnec:
|
2019-07-14 14:38:38 +00:00
|
|
|
#RequestHeader set X-SCHEME http
|
2018-10-11 00:44:08 +00:00
|
|
|
|
2019-07-14 14:38:38 +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.)
|
2019-07-14 14:38:38 +00:00
|
|
|
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>
|