diff --git a/roles/calibre-web/templates/calibre-web.conf.j2 b/roles/calibre-web/templates/calibre-web.conf.j2 index cb81c9ad6..d3853e962 100644 --- a/roles/calibre-web/templates/calibre-web.conf.j2 +++ b/roles/calibre-web/templates/calibre-web.conf.j2 @@ -6,17 +6,22 @@ # Unnec when "{{ calibreweb_url }}" is added to Proxy* directive(s) further below # +# 2019-07-14: this line remains necessary (page barely renders without it!) RequestHeader set X-SCRIPT-NAME {{ calibreweb_url }} # Appears unnec: -RequestHeader set X-SCHEME http +#RequestHeader set X-SCHEME http -ProxyPass {{ calibreweb_url }} http://localhost:{{ calibreweb_port }}/ +ProxyPass {{ calibreweb_url1 }} http://localhost:{{ calibreweb_port }}/ +ProxyPass {{ calibreweb_url2 }} http://localhost:{{ calibreweb_port }}/ +ProxyPass {{ calibreweb_url3 }} http://localhost:{{ calibreweb_port }}/ # Possibly unnec? (ProxyPassReverse rewrites internal links, that come back # from Apache proxy. Whereas e.g. kiwix.conf doesn't need this, as kiwix itself # prefixes URLs, thanks to --urlRootLocation=/kiwix/ in its systemd file.) -ProxyPassReverse {{ calibreweb_url }} http://localhost:{{ calibreweb_port }}/ +ProxyPassReverse {{ calibreweb_url1 }} http://localhost:{{ calibreweb_port }}/ +ProxyPassReverse {{ calibreweb_url2 }} http://localhost:{{ calibreweb_port }}/ +ProxyPassReverse {{ calibreweb_url3 }} http://localhost:{{ calibreweb_port }}/ #