kiwix / kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
https://download.kiwix.org/release/kiwix-xulrunner/
GNU General Public License v3.0
111 stars 28 forks source link

kiwix-serve URL paths should be specified as relative rather than absolute #436

Closed abudden closed 7 years ago

abudden commented 7 years ago

If kiwix is installed behind a proxy (e.g. nginx) with a non-root path, none of the links or stylesheets work as every URL is specified as absolute (e.g. /skin/jquery-ui/external/jquery/jquery.js). Therefore if you have nginx configured to serve kiwix at /kiwix, the links resolve to /skin/... instead of /kiwix/skin/... and nothing works.

tim-moody commented 7 years ago

I have also had this problem. There is a more laborious workaround where you proxy each zim:

location /wiktionary_en_simple_all_2016-05 { proxy_set_header X-Forwarded-Host $host:$server_port; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:3000/wiktionary_en_simple_all_2016-05/; }

same principal works in apache

kelson42 commented 7 years ago

This issue was moved to kiwix/kiwix-tools#31