mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
23 lines
883 B
Django/Jinja
23 lines
883 B
Django/Jinja
# SEE ALSO: https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy
|
|
|
|
# Line used to work (in August 2018) but prevented http://box/books from working in October 2018: https://github.com/iiab/iiab/issues/1196
|
|
#<VirtualHost *:80>
|
|
|
|
# Unnec when "{{ calibreweb_url }}" is added to Proxy* directive(s) further below
|
|
# <Location "{{ calibreweb_url }}" >
|
|
|
|
RequestHeader set X-SCRIPT-NAME {{ calibreweb_url }}
|
|
|
|
# Appears unnec:
|
|
RequestHeader set X-SCHEME http
|
|
|
|
ProxyPass {{ calibreweb_url }} 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 }}/
|
|
|
|
# </Location>
|
|
|
|
#</VirtualHost>
|