# test with # wget --server-response -O /dev/null http://www.nature.com.p.vbz.ffzg.hr/ Include /srv/via-proxy/ssl.conf ServerName muse.jhu.edu.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://muse.jhu.edu/ ProxyPassReverse / https://muse.jhu.edu/ 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://muse.jhu.edu/|https://muse.jhu.edu.p.vbz.ffzg.hr/|" Substitute "s|https://about.muse.jhu.edu/|https://about.muse.jhu.edu.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 about.muse.jhu.edu.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://about.muse.jhu.edu/ ProxyPassReverse / https://about.muse.jhu.edu/ 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://muse.jhu.edu/|https://muse.jhu.edu.p.vbz.ffzg.hr/|" Substitute "s|https://about.muse.jhu.edu/|https://about.muse.jhu.edu.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 # a2enmod proxy_http proxy_html xml2enc headers # https://www.oclc.org/support/services/ezproxy/documentation/db/cambridgecore.en.html Include /srv/via-proxy/ssl.conf ServerName www.cambridge.org.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.cambridge.org/ ProxyPassReverse / https://www.cambridge.org/ #ProxyPassReverseCookieDomain www.cambridge.org www.cambridge.org.p.vbz.ffzg.hr #ProxyPassReverseCookieDomain cambridge.org cambridge.org.p.vbz.ffzg.hr 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 #ProxyHTMLLogVerbose On LogLevel Debug #SetOutputFilter INFLATE;DEFLATE RequestHeader unset Accept-Encoding ProxyRequests off # ProxyHTMLEnable On # ProxyHTMLExtended On # ProxyHTMLURLMap http://www.cambridge.org / # a2enmod substitute Substitute "s|http://www.cambridge.org/|/|n" Substitute "s|https://www.cambridge.org/|/|n" 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 Include /srv/via-proxy/ssl.conf ServerName search.proquest.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://search.proquest.com/ ProxyPassReverse / https://search.proquest.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|https://search.proquest.com/|/|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 academic.oup.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://academic.oup.com/ ProxyPassReverse / https://academic.oup.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|https://academic.oup.com/|/|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 # https://www.oclc.org/support/services/ezproxy/documentation/db/ovid.en.html Include /srv/via-proxy/ssl.conf ServerName ovidsp.tx.ovid.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://ovidsp.tx.ovid.com/ ProxyPassReverse / https://ovidsp.tx.ovid.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|https://ovidsp.tx.ovid.com/|/|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 onlinelibrary.wiley.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://onlinelibrary.wiley.com/ ProxyPassReverse / https://onlinelibrary.wiley.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://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 Include /srv/via-proxy/ssl.conf ServerName journals.sagepub.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://journals.sagepub.com/ ProxyPassReverse / https://journals.sagepub.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 Include /srv/via-proxy/ssl.conf ServerName pubs.rsc.org.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass /_rsc-cdn_/ https://www.rsc-cdn.org/ ProxyPassReverse /_rsc-cdn_/ https://www.rsc-cdn.org/ ProxyPass / https://pubs.rsc.org/ ProxyPassReverse / https://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|https://[a-z-]*.rsc-cdn.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|" Substitute "s|https://www.rsc.org/|https://www.rsc.org.p.vbz.ffzg.hr/|" Substitute "s|https://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_/ https://epi-rsc.rsc-cdn.org/ ProxyPassReverse /_epi-rsc_/ https://epi-rsc.rsc-cdn.org/ ProxyPass / https://www.rsc.org/ ProxyPassReverse / https://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|https://epi-rsc.rsc-cdn.org/|https://www.rsc.org.p.vbz.ffzg.hr/_epi-rsc_/|" # Substitute "s|https://[a-z-]*.rsc-cdn.org/|https://www.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|" Substitute "s|https://www.rsc.org/|https://www.rsc.org.p.vbz.ffzg.hr/|" Substitute "s|https://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.brepolis.net.p.vbz.ffzg.hr ProxyAddHeaders Off ProxyPass / http://www.brepolis.net/ ProxyPassReverse / http://www.brepolis.net/ 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://apps.brepolis.net/|https://apps.brepolis.net.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 apps.brepolis.net.p.vbz.ffzg.hr ProxyAddHeaders Off ProxyPass / http://apps.brepolis.net/ ProxyPassReverse / http://apps.brepolis.net/ 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://apps.brepolis.net/|https://apps.brepolis.net.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.cairn.info.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.cairn.info/ ProxyPassReverse / https://www.cairn.info/ 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 Include /srv/via-proxy/ssl.conf ServerName www.degruyter.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.degruyter.com/ ProxyPassReverse / https://www.degruyter.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 Include /srv/via-proxy/ssl.conf ServerName www.emeraldinsight.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.emeraldinsight.com/ ProxyPassReverse / https://www.emeraldinsight.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 "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 Include /srv/via-proxy/ssl.conf ServerName www.webofknowledge.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.webofknowledge.com/ ProxyPassReverse / https://www.webofknowledge.com/ Header edit* Location "(https://apps.webofknowledge.com)/(.*)" "https://apps.webofknowledge.com.p.vbz.ffzg.hr/$2" 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://apps.webofknowledge.com/|https://apps.webofknowledge.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 apps.webofknowledge.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://apps.webofknowledge.com/ ProxyPassReverse / https://apps.webofknowledge.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 Include /srv/via-proxy/ssl.conf ServerName www.jstor.org.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.jstor.org/ ProxyPassReverse / https://www.jstor.org/ Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3" # Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1" #Header edit* Referer "http://(.*)(?i:\.p\.vbz\.ffzg\.hr)" "https://$1$2" RequestHeader edit* Referer "//(.*)(?i:\.p\.vbz\.ffzg\.hr)" "//$1$2" CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined # Header set Access-Control-Allow-Origin "*" # Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept" # jstor expects # X-Requested-With: XMLHttpRequest # https://www.jstor.org/ui_log/info # https://www.jstor.org/access_details/?_=1535108073005 # https://www.jstor.org/workspace-service/get-dois?_=1535108073006 # https://www.jstor.org/tc/check/10.2307/40323659?_=1535108073007 # https://www.jstor.org/tc/accept?origin=%2Ftc%2Fcheck%2F10.2307%2F40323659%3F_%3D1535108073007 # https://www.jstor.org/ui_log/counter # #Header always set Access-Control-Allow-Origin "*" #Header always set Access-Control-Max-Age "1000" #Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token" # OCLC has special case for this header # SetEnvIf X-Requested-With (.*) saved_x_requested_with=$1 # RequestHeader set X-Requested-With "%{saved_x_requested_with}e" #ForensicLog /var/log/apache2/forensic-jstor.log RequestHeader unset Accept-Encoding Substitute "s|//www.jstor.org/|//www.jstor.org.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 Include /srv/via-proxy/ssl.conf ServerName www.nature.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.nature.com/ ProxyPassReverse / https://www.nature.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?://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/" RequestHeader unset Accept-Encoding Substitute "s|https://www.nature.com/|https://www.nature.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 idp.nature.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://idp.nature.com/ ProxyPassReverse / https://idp.nature.com/ Header edit* Location "https://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/" Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;][^;]+);" "$1 ; domain=$2.p.vbz.ffzg.hr;" Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1" CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined Include /srv/via-proxy/ssl.conf ServerName www.palgrave.com.p.vbz.ffzg.hr #DumpIOInput On #DumpIOOutput On #DumpIOLogLevel debug #LogLevel debug ProxyAddHeaders Off SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.palgrave.com/ ProxyPassReverse / https://www.palgrave.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|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/ ProxyPassReverse / https://link.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 www.tandfonline.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.tandfonline.com/ ProxyPassReverse / https://www.tandfonline.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 Include /srv/via-proxy/ssl.conf ServerName www.sciencedirect.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.sciencedirect.com/ ProxyPassReverse / https://www.sciencedirect.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 Include /srv/via-proxy/ssl.conf ServerName www.scopus.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://www.scopus.com/ ProxyPassReverse / https://www.scopus.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|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 Include /srv/via-proxy/ssl.conf ServerName journals.bmj.com.p.vbz.ffzg.hr RequestHeader unset Accept-Encoding Substitute "s|(https:)?//(\w+)\.bmj\.com/|https://journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$2/_path_/|" # Substitute "s|//(.*)\.bmj\.com/|//journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$1/_path_/|" 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 # fix all other plain http resources RewriteEngine on RewriteRule /_rewrite_/(.*)/_path_/(.*) https://$1.bmj.com/$2 [P,L] SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://journals.bmj.com/ ProxyPassReverse / https://journals.bmj.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 Include /srv/via-proxy/ssl.conf ServerName journals.bmj.com.p.vbz.ffzg.hr #SSLProxyEngine on ProxyAddHeaders Off ProxyPass / http://journals.bmj.com/ ProxyPassReverse / http://journals.bmj.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 Include /srv/via-proxy/ssl.conf ServerName ieeexplore.ieee.org.p.vbz.ffzg.hr RequestHeader unset Accept-Encoding Substitute "s|https://staticieeexplore.ieee.org/|https://ieeexplore.ieee.org.p.vbz.ffzg.hr/_static_/|n" 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 ProxyAddHeaders Off ProxyPass /_static_/ https://staticieeexplore.ieee.org/ ProxyPassReverse /_static_/ https://staticieeexplore.ieee.org/ # IEEE Xplore is transitioning to HTTPS on 9 April 2018. SSLProxyEngine on ProxyPass / https://ieeexplore.ieee.org/ ProxyPassReverse / https://ieeexplore.ieee.org/ 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 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 Include /srv/via-proxy/ssl.conf ServerName search.alexanderstreet.com.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://search.alexanderstreet.com/ ProxyPassReverse / https://search.alexanderstreet.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 Include /srv/via-proxy/ssl.conf ServerName pubs.asha.org.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://pubs.asha.org/ ProxyPassReverse / https://pubs.asha.org/ 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://leader.pubs.asha.org/" "https://leader.pubs.asha.org.p.vbz.ffzg.hr/" RequestHeader unset Accept-Encoding Substitute "s|https://pubs.asha.org|https://pubs.asha.org.p.vbz.ffzg.hr|" Substitute "s|https://leader.pubs.asha.org|https://leader.pubs.asha.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 leader.pubs.asha.org.p.vbz.ffzg.hr SSLProxyEngine on ProxyAddHeaders Off ProxyPass / https://leader.pubs.asha.org/ ProxyPassReverse / https://leader.pubs.asha.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|https://pubs.asha.org|https://pubs.asha.org.p.vbz.ffzg.hr|" Substitute "s|https://leader.pubs.asha.org|https://leader.pubs.asha.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 NameVirtualHost *:443 Include /srv/via-proxy/ssl.conf DocumentRoot /srv/via-proxy Require all granted ServerName p.vbz.ffzg.hr ServerAlias *.p.vbz.ffzg.hr CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined ProxyAddHeaders Off #ForensicLog /var/log/apache2/forensic-p.vbz.ffzg.hr.log ProxyPass /mjesec/ http://mjesec.ffzg.hr/ ProxyPassReverse /mjesec/ http://mjesec.ffzg.hr/ RequestHeader edit* Referer "//(.*)(?i:\.p\.vbz\.ffzg\.hr)" "//$1$2" ProxyPass /via/ http://via.rot13.org/ ProxyPassReverse /via/ http://via.rot13.org/ DocumentRoot /srv/via-proxy Require all granted ServerName p.vbz.ffzg.hr ServerAlias *.p.vbz.ffzg.hr CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined Redirect / https://p.vbz.ffzg.hr