From: Dobrica Pavlinusic Date: Fri, 23 Mar 2018 12:42:25 +0000 (+0100) Subject: fix rsc which doesn't have https but has cdn X-Git-Url: http://git.rot13.org/?p=via-proxy;a=commitdiff_plain;h=db7ac207afb479dc6ea4dc63c9b1360881d8ca7a fix rsc which doesn't have https but has cdn --- diff --git a/index.html b/index.html index 2c45b66..08e046d 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@
  • Ovid mesz
  • Wiley
  • Sage -
  • The Royal Society of Chemistry's FIXME +
  • The Royal Society of Chemistry's
  • Brepolis
  • Cairn
  • De Gruyter Publishers diff --git a/p.vbz.ffzg.hr.conf b/p.vbz.ffzg.hr.conf index 3637ad3..f072fc9 100644 --- a/p.vbz.ffzg.hr.conf +++ b/p.vbz.ffzg.hr.conf @@ -161,13 +161,25 @@ FilterChain NEWPATHS2 ServerName pubs.rsc.org.p.vbz.ffzg.hr - # FIXME -- this doesn't work behind https! + ProxyPass /_rsc-cdn_/ http://www.rsc-cdn.org/ + ProxyPassReverse /_rsc-cdn_/ http://www.rsc-cdn.org/ + + # FIXME -- this doesn't work behind https and include http resources ProxyPass / http://pubs.rsc.org/ ProxyPassReverse / http://pubs.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://[a-z-]*.rsc-cdn.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|" + 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