X-Git-Url: http://git.rot13.org/?p=via-proxy;a=blobdiff_plain;f=p.vbz.ffzg.hr.conf;h=53edfaabbf4d9566fd4737c78e3484f557e752e8;hp=8755ea1617051bf4e37b2b26a1fea59deab92ef1;hb=c1cf16b059e17b592d98bbd9091f55cef34a948b;hpb=691d742cb91c70890cf1614978365fcea24679f4 diff --git a/p.vbz.ffzg.hr.conf b/p.vbz.ffzg.hr.conf index 8755ea1..53edfaa 100644 --- a/p.vbz.ffzg.hr.conf +++ b/p.vbz.ffzg.hr.conf @@ -5,10 +5,45 @@ 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 @@ -433,21 +468,31 @@ FilterChain NEWPATHS2 ServerName www.jstor.org.p.vbz.ffzg.hr - #SSLProxyEngine on - # download pdf doesn't work if we use https://www.jstor.org ! + SSLProxyEngine on ProxyAddHeaders Off - ProxyPass / http://www.jstor.org/ - ProxyPassReverse / http://www.jstor.org/ + 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* Set-Cookie "(.*)(?i:; *secure)" "$1" -# Header edit* Referer "http://(.*)(?i:\.p\.vbz\.ffzg\.hr)" "https://$1$2" + #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 add Access-Control-Allow-Origin '' - #Header add Access-Control-Allow-Headers "X-Requested-With, Content-Type" +# 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" @@ -458,16 +503,16 @@ FilterChain NEWPATHS2 # SetEnvIf X-Requested-With (.*) saved_x_requested_with=$1 # RequestHeader set X-Requested-With "%{saved_x_requested_with}e" - #ForensicLog /var/log/apache2/forensic.log + #ForensicLog /var/log/apache2/forensic-jstor.log -#RequestHeader unset Accept-Encoding -#Substitute "s|http://www.jsor.org/|http://www.jstor.org.p.vbz.ffzg.hr/|n" -#FilterDeclare NEWPATHS2 -#FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|" +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 +FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|" +FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|" +FilterChain NEWPATHS2 @@ -716,7 +761,7 @@ FilterChain NEWPATHS2 ServerName ieeexplore.ieee.org.p.vbz.ffzg.hr RequestHeader unset Accept-Encoding - Substitute "s|http://staticieeexplore.ieee.org/|https://ieeexplore.ieee.org.p.vbz.ffzg.hr/_static_/|n" + 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|" @@ -725,13 +770,13 @@ FilterChain NEWPATHS2 FilterChain NEWPATHS ProxyAddHeaders Off - ProxyPass /_static_/ http://staticieeexplore.ieee.org/ - ProxyPassReverse /_static_/ http://staticieeexplore.ieee.org/ + 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 / http://ieeexplore.ieee.org/ - ProxyPassReverse / http://ieeexplore.ieee.org/ + 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" @@ -777,6 +822,74 @@ FilterChain NEWPATHS2 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 + @@ -794,6 +907,17 @@ NameVirtualHost *:443 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/