mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add AllowEncodedSlashes to the apache proxy config examples
This commit is contained in:
parent
ed554fd319
commit
f8cc5af61a
@ -276,6 +276,7 @@ Or, for Apache::
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName myserver.example.com
|
||||
AllowEncodedSlashes On
|
||||
ProxyPreserveHost On
|
||||
ProxyPass "/" "http://localhost:8080"
|
||||
</VirtualHost>
|
||||
@ -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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user