From f8cc5af61aa5431119d79def4d4c79c7d9241916 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 2 Jul 2017 20:23:14 +0530 Subject: [PATCH] Add AllowEncodedSlashes to the apache proxy config examples --- manual/server.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manual/server.rst b/manual/server.rst index 7a6c13d641..c8ed9560ec 100644 --- a/manual/server.rst +++ b/manual/server.rst @@ -276,6 +276,7 @@ Or, for Apache:: ServerName myserver.example.com + AllowEncodedSlashes On ProxyPreserveHost On ProxyPass "/" "http://localhost:8080" @@ -312,6 +313,7 @@ For Apache, first enable the proxy modules in Apache, by adding the following to The exact technique for enabling the proxy modules will vary depending on your Apache installation. Once you have the proxy modules enabled, add the following rules to :file:`httpd.conf` (or if you are using virtual hosts to the conf file for the virtual host in question):: + AllowEncodedSlashes On RewriteEngine on RewriteRule ^/calibre/(.*) http://127.0.0.1:8080/calibre/$1 [proxy] RedirectMatch permanent ^/calibre$ /calibre/