X-Git-Url: http://git.rot13.org/?p=via-proxy;a=blobdiff_plain;f=p.vbz.ffzg.hr.conf;h=43a11322eb3bdae05ef09957634bbb9d2a877e21;hp=6deb315d8e03c6817ae2cdde8ff06e3df4f02ebe;hb=0c262e75301fd754d1f1a7a72e26c46f780b827e;hpb=82bdf7d1fb267930c5b2fb83a9faa0b676942e38
diff --git a/p.vbz.ffzg.hr.conf b/p.vbz.ffzg.hr.conf
index 6deb315..43a1132 100644
--- a/p.vbz.ffzg.hr.conf
+++ b/p.vbz.ffzg.hr.conf
@@ -143,6 +143,22 @@ FilterChain NEWPATHS2
Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
+ Header edit* Location "https://anthrosource.onlinelibrary.wiley.com" "https://anthrosource.onlinelibrary.wiley.com.p.vbz.ffzg.hr"
+ CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
+
+
+ Include /srv/via-proxy/ssl.conf
+
+ ServerName anthrosource.onlinelibrary.wiley.com.p.vbz.ffzg.hr
+ SSLProxyEngine on
+ ProxyAddHeaders Off
+
+ ProxyPass / https://anthrosource.onlinelibrary.wiley.com/
+ ProxyPassReverse / https://anthrosource.onlinelibrary.wiley.com/
+
+ Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
+ Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
+
CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
@@ -181,6 +197,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|"
@@ -292,6 +341,16 @@ FilterChain NEWPATHS2
Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
+# they have hard-coded absolute links
+RequestHeader unset Accept-Encoding
+Substitute "s|https://www.emeraldinsight.com/|https://www.emeraldinsight.com.p.vbz.ffzg.hr/|n"
+FilterDeclare NEWPATHS2
+FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
+FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
+FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
+FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
+FilterChain NEWPATHS2
+
CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
@@ -430,11 +489,11 @@ FilterChain NEWPATHS2
ServerName www.palgrave.com.p.vbz.ffzg.hr
-DumpIOInput On
-DumpIOOutput On
+#DumpIOInput On
+#DumpIOOutput On
#DumpIOLogLevel debug
-LogLevel debug
+#LogLevel debug
ProxyAddHeaders Off
@@ -589,6 +648,48 @@ LogLevel debug
CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
+
+ Include /srv/via-proxy/ssl.conf
+
+ ServerName jcr.incites.thomsonreuters.com.p.vbz.ffzg.hr
+
+ SSLProxyEngine on
+ ProxyAddHeaders Off
+ ProxyPass / https://jcr.incites.thomsonreuters.com/
+ ProxyPassReverse / https://jcr.incites.thomsonreuters.com/
+
+ Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
+ Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
+
+ Header edit* Location "(https://.*.incites.thomsonreuters.com)/?(.*)" "$1.p.vbz.ffzg.hr/$2"
+
+
+ CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
+
+
+ Include /srv/via-proxy/ssl.conf
+
+ ServerName login.incites.thomsonreuters.com.p.vbz.ffzg.hr
+
+ SSLProxyEngine on
+ ProxyAddHeaders Off
+ ProxyPass / https://login.incites.thomsonreuters.com/
+ ProxyPassReverse / https://login.incites.thomsonreuters.com/
+
+ Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
+ Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
+
+ # they really return http Location header even if everything else was
+ # behind https up to that point, AND https works
+ Header edit* Location "https?://(.*.incites.thomsonreuters.com)/?(.*)" "https://$1.p.vbz.ffzg.hr/$2"
+
+ CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
+
+
+
+
+
+
NameVirtualHost *:443