From: Dobrica Pavlinusic Date: Fri, 23 Mar 2018 18:07:21 +0000 (+0100) Subject: somewhat working bmj, but still broken X-Git-Url: http://git.rot13.org/?p=via-proxy;a=commitdiff_plain;h=a92cd77580af3820f884d1306d8e8f69edc55bbd somewhat working bmj, but still broken --- diff --git a/p.vbz.ffzg.hr.conf b/p.vbz.ffzg.hr.conf index 36c9d71..e23ef16 100644 --- a/p.vbz.ffzg.hr.conf +++ b/p.vbz.ffzg.hr.conf @@ -483,6 +483,20 @@ FilterChain NEWPATHS2 ServerName journals.bmj.com.p.vbz.ffzg.hr + RequestHeader unset Accept-Encoding + Substitute "s|(http:)?//(\w+)\.bmj\.com/|https://journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$2/_path_/|" +# Substitute "s|//(.*)\.bmj\.com/|//journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$1/_path_/|" + FilterDeclare NEWPATHS + FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|" + FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|" + FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|" + FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|" + FilterChain NEWPATHS + + # fix all other plain http resources + RewriteEngine on + RewriteRule /_rewrite_/(.*)/_path_/(.*) http://$1.bmj.com/$2 [P,L] + #SSLProxyEngine on ProxyPass / http://journals.bmj.com/ ProxyPassReverse / http://journals.bmj.com/ @@ -514,7 +528,7 @@ FilterChain NEWPATHS2 ServerName ieeexplore.ieee.org.p.vbz.ffzg.hr RequestHeader unset Accept-Encoding - Substitute "s|http://staticieeexplore.ieee.org/|https://ieeexplore.ieee.org.p.vbz.ffzg.hr/_static_/|" + Substitute "s|http://staticieeexplore.ieee.org/|https://ieeexplore.ieee.org.p.vbz.ffzg.hr/_static_/|n" FilterDeclare NEWPATHS FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|" FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"