From 76f1e3fac64b2d83e86b4171d706c04f99c25a75 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 27 Jun 2017 01:05:35 +0530 Subject: [PATCH] Use rewrite to preserve the port --- manual/server.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/server.rst b/manual/server.rst index 594e69b3ad..bb1e00a3cc 100644 --- a/manual/server.rst +++ b/manual/server.rst @@ -302,7 +302,7 @@ With nginx, the required configuration is:: } location /calibre { # we need a trailing slash for the Application Cache to work - return 301 $scheme://$host$uri/; + rewrite /calibre /calibre/ permanent; }