X-Git-Url: http://git.rot13.org/?p=via-proxy;a=blobdiff_plain;f=p.vbz.ffzg.hr.conf;h=c4840760a20b74ea4f730d5f2aa36aae0a3802a1;hp=4dc3b3cdc4bac0474e9b66243ca46ad076ca8a98;hb=289e941c2e0ca1ea0b7bcdc378c7c946a94138ea;hpb=f34cd347e165c294c794fb55788bae1c9676aeef diff --git a/p.vbz.ffzg.hr.conf b/p.vbz.ffzg.hr.conf index 4dc3b3c..c484076 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 @@ -325,6 +341,47 @@ 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 "http://emeraldgrouppublishing.com/" "https://emeraldgrouppublishing.com.p.vbz.ffzg.hr/" + +# 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" +Substitute "s|http://www.emeraldgrouppublishing.com/|https://www.emeraldgrouppublishing.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 + + + Include /srv/via-proxy/ssl.conf + + ServerName www.emeraldgrouppublishing.com.p.vbz.ffzg.hr + ServerAlias emeraldgrouppublishing.com.p.vbz.ffzg.hr + + # FIXME target server for www.emeraldgrouppublishing.com doesn't have that in SSL cert + #SSLProxyEngine on + ProxyAddHeaders Off + ProxyPass / http://www.emeraldgrouppublishing.com/ + ProxyPassReverse / http://www.emeraldgrouppublishing.com/ + + 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|http://www.emeraldgrouppublishing.com/|https://www.emeraldgrouppublishing.com.p.vbz.ffzg.hr/|n" +Substitute "s|http://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 @@ -479,14 +536,55 @@ FilterChain NEWPATHS2 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|https://www.palgrave.com|https://www.palgrave.com.p.vbz.ffzg.hr|n" +Substitute "s|http://www.palgrave.com|https://www.palgrave.com.p.vbz.ffzg.hr|n" +Substitute "s|http://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n" +Substitute "s|http://www.springer.com|https://www.springer.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 + + Include /srv/via-proxy/ssl.conf + + ServerName www.springer.com.p.vbz.ffzg.hr + + SSLProxyEngine on + ProxyAddHeaders Off + ProxyPass / https://www.springer.com/ + ProxyPassReverse / https://www.springer.com/ + + 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://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n" +Substitute "s|http://www.springer.com|https://www.springer.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 + Include /srv/via-proxy/ssl.conf ServerName link.springer.com.p.vbz.ffzg.hr + # download links to pdf have %2F instead of / in them + AllowEncodedSlashes On + # this might need nocanon in ProxyPass too! + SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://link.springer.com/ @@ -495,6 +593,16 @@ FilterChain NEWPATHS2 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://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n" +Substitute "s|http://www.springer.com|https://www.springer.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 @@ -544,6 +652,15 @@ FilterChain NEWPATHS2 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|https://www.scopus.com|https://www.scopus.com.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