springer link has %2F in URLs
[via-proxy] / p.vbz.ffzg.hr.conf
index ffb40dc..446d742 100644 (file)
@@ -537,7 +537,8 @@ FilterChain NEWPATHS2
        Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
 
 RequestHeader unset Accept-Encoding
-Substitute "s|https?://www.palgrave.com/|https://www.palgrave.com.p.vbz.ffzg.hr/|n"
+Substitute "s|https://www.palgrave.com|https://www.palgrave.com.p.vbz.ffzg.hr|n"
+Substitute "s|http://www.palgrave.com|https://www.palgrave.com.p.vbz.ffzg.hr|n"
 Substitute "s|http://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n"
 Substitute "s|http://www.springer.com|https://www.springer.com.p.vbz.ffzg.hr|n"
 FilterDeclare NEWPATHS2
@@ -580,6 +581,10 @@ FilterChain NEWPATHS2
 
        ServerName link.springer.com.p.vbz.ffzg.hr
 
+       # download links to pdf have %2F instead of / in them
+       AllowEncodedSlashes On
+       # this might need nocanon in ProxyPass too!
+
        SSLProxyEngine on
        ProxyAddHeaders Off
        ProxyPass        / https://link.springer.com/