Use $request_uri in nginx so there is no need for hackery

This commit is contained in:
Kovid Goyal 2017-06-26 23:35:15 +05:30
parent 6ccfc14465
commit 042df155ea
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -298,11 +298,7 @@ With nginx, the required configuration is::
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
location /calibre/ { location /calibre/ {
proxy_buffering off; proxy_buffering off;
# Really, this should be passed on to /calibre but because of an nginx proxy_pass http://127.0.0.1:8080/$request_uri;
# bug: https://trac.nginx.org/nginx/ticket/727 we cannot do so. Things
# should still work, since /calibre is not used by the calibre server
# itself.
proxy_pass http://127.0.0.1:8080;
} }
location /calibre { location /calibre {
# we need a trailing slash for the Application Cache to work # we need a trailing slash for the Application Cache to work