<li><a href="https://ovidsp.tx.ovid.com.p.vbz.ffzg.hr/ovidweb.cgi?T=JS&NEWS=n&MODE=ovid&PAGE=main&D=mesz">Ovid mesz</a>
<li><a href="https://onlinelibrary.wiley.com.p.vbz.ffzg.hr/">Wiley</a>
<li><a href="https://journals.sagepub.com.p.vbz.ffzg.hr/">Sage</a>
-<li><a href="https://pubs.rsc.org.p.vbz.ffzg.hr/">The Royal Society of Chemistry's</a> FIXME
+<li><a href="https://pubs.rsc.org.p.vbz.ffzg.hr/">The Royal Society of Chemistry's</a>
<li><a href="https://www.brepolis.net.p.vbz.ffzg.hr">Brepolis</a>
<li><a href="https://www.cairn.info.p.vbz.ffzg.hr">Cairn</a>
<li><a href="https://www.degruyter.com.p.vbz.ffzg.hr/browse?type_0=journals">De Gruyter Publishers</a>
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
</VirtualHost>