From f34cd347e165c294c794fb55788bae1c9676aeef Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 22 Aug 2018 13:20:13 +0200 Subject: [PATCH] proxy www.rsc.org so we can browse without loosing proxy --- index.html | 2 +- p.vbz.ffzg.hr.conf | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d3a9607..4f46caf 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@
  • WOS
  • JSTOR
  • nature -
  • palgrave BROKEN +
  • palgrave
  • springerlink
  • Taylor & Francis Online
  • sciencedirect diff --git a/p.vbz.ffzg.hr.conf b/p.vbz.ffzg.hr.conf index de0c994..4dc3b3c 100644 --- a/p.vbz.ffzg.hr.conf +++ b/p.vbz.ffzg.hr.conf @@ -181,6 +181,39 @@ FilterChain NEWPATHS2 RequestHeader unset Accept-Encoding Substitute "s|http://[a-z-]*.rsc-cdn.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|" + Substitute "s|http://www.rsc.org/|https://www.rsc.org.p.vbz.ffzg.hr/|" + Substitute "s|http://pubs.rsc.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/|" + 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 + + CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined + + + Include /srv/via-proxy/ssl.conf + + ServerName www.rsc.org.p.vbz.ffzg.hr + + ProxyAddHeaders Off + + ProxyPass /_epi-rsc_/ http://epi-rsc.rsc-cdn.org/ + ProxyPassReverse /_epi-rsc_/ http://epi-rsc.rsc-cdn.org/ + + # FIXME -- this doesn't work behind https and include http resources + ProxyPass / http://www.rsc.org/ + ProxyPassReverse / http://www.rsc.org/ + + Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3" + Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1" + + RequestHeader unset Accept-Encoding + Substitute "s|http://epi-rsc.rsc-cdn.org/|https://www.rsc.org.p.vbz.ffzg.hr/_epi-rsc_/|" +# Substitute "s|http://[a-z-]*.rsc-cdn.org/|https://www.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|" + Substitute "s|http://www.rsc.org/|https://www.rsc.org.p.vbz.ffzg.hr/|" + Substitute "s|http://pubs.rsc.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/|" FilterDeclare NEWPATHS FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|" FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|" -- 2.20.1