From 09befba860b861bcc152409eebbe7453a5b46323 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 22 Oct 2020 12:46:42 +0200 Subject: [PATCH 1/1] added providers --- providers/elibrary.narr.digital.conf | 39 ++++++++++++++++++++++++++ providers/journals.sagepub.com.conf | 39 ++++++++++++++++++++++++++ providers/www.oxfordartonline.com.conf | 39 ++++++++++++++++++++++++++ providers/www.oxfordreference.com.conf | 39 ++++++++++++++++++++++++++ providers/www.statista.com.conf | 39 ++++++++++++++++++++++++++ 5 files changed, 195 insertions(+) create mode 100644 providers/elibrary.narr.digital.conf create mode 100644 providers/journals.sagepub.com.conf create mode 100644 providers/www.oxfordartonline.com.conf create mode 100644 providers/www.oxfordreference.com.conf create mode 100644 providers/www.statista.com.conf diff --git a/providers/elibrary.narr.digital.conf b/providers/elibrary.narr.digital.conf new file mode 100644 index 0000000..d266a06 --- /dev/null +++ b/providers/elibrary.narr.digital.conf @@ -0,0 +1,39 @@ +# ./add-provider.pl elibrary.narr.digital + + + + + Include /srv/via-proxy/ssl.conf + + ServerName elibrary.narr.digital.p.vbz.ffzg.hr + + RewriteEngine on + # fix broken chunging + #RewriteRule /common/javascript/extjs/ext-all.js https://elibrary.narr.digital/common/javascript/extjs/ext-all.js [R,L] + + SSLProxyEngine on + ProxyAddHeaders Off + ProxyPass / https://elibrary.narr.digital/ + ProxyPassReverse / https://elibrary.narr.digital/ + + Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3" + #Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1" +# if there are problems, remove traling / + Header edit* Location "https://elibrary.narr.digital/" "https://elibrary.narr.digital.p.vbz.ffzg.hr/" + + RequestHeader unset Accept-Encoding + Substitute "s|https://elibrary.narr.digital|https://elibrary.narr.digital.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 + + + +## add domains to SSL certificate: +# elibrary.narr.digital.p.vbz.ffzg.hr diff --git a/providers/journals.sagepub.com.conf b/providers/journals.sagepub.com.conf new file mode 100644 index 0000000..42a3220 --- /dev/null +++ b/providers/journals.sagepub.com.conf @@ -0,0 +1,39 @@ +# ./add-provider.pl journals.sagepub.com + + + + + Include /srv/via-proxy/ssl.conf + + ServerName journals.sagepub.com.p.vbz.ffzg.hr + + RewriteEngine on + # fix broken chunging + #RewriteRule /common/javascript/extjs/ext-all.js https://journals.sagepub.com/common/javascript/extjs/ext-all.js [R,L] + + 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" +# if there are problems, remove traling / + Header edit* Location "https://journals.sagepub.com/" "https://journals.sagepub.com.p.vbz.ffzg.hr/" + + RequestHeader unset Accept-Encoding + Substitute "s|https://journals.sagepub.com|https://journals.sagepub.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 + + + +## add domains to SSL certificate: +# journals.sagepub.com.p.vbz.ffzg.hr diff --git a/providers/www.oxfordartonline.com.conf b/providers/www.oxfordartonline.com.conf new file mode 100644 index 0000000..7a63a4d --- /dev/null +++ b/providers/www.oxfordartonline.com.conf @@ -0,0 +1,39 @@ +# ./add-provider.pl www.oxfordartonline.com + + + + + Include /srv/via-proxy/ssl.conf + + ServerName www.oxfordartonline.com.p.vbz.ffzg.hr + + RewriteEngine on + # fix broken chunging + #RewriteRule /common/javascript/extjs/ext-all.js https://www.oxfordartonline.com/common/javascript/extjs/ext-all.js [R,L] + + SSLProxyEngine on + ProxyAddHeaders Off + ProxyPass / https://www.oxfordartonline.com/ + ProxyPassReverse / https://www.oxfordartonline.com/ + + Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3" + #Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1" +# if there are problems, remove traling / + Header edit* Location "https://www.oxfordartonline.com/" "https://www.oxfordartonline.com.p.vbz.ffzg.hr/" + + RequestHeader unset Accept-Encoding + Substitute "s|https://www.oxfordartonline.com|https://www.oxfordartonline.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 + + + +## add domains to SSL certificate: +# www.oxfordartonline.com.p.vbz.ffzg.hr diff --git a/providers/www.oxfordreference.com.conf b/providers/www.oxfordreference.com.conf new file mode 100644 index 0000000..9d48513 --- /dev/null +++ b/providers/www.oxfordreference.com.conf @@ -0,0 +1,39 @@ +# ./add-provider.pl www.oxfordreference.com + + + + + Include /srv/via-proxy/ssl.conf + + ServerName www.oxfordreference.com.p.vbz.ffzg.hr + + RewriteEngine on + # fix broken chunging + #RewriteRule /common/javascript/extjs/ext-all.js https://www.oxfordreference.com/common/javascript/extjs/ext-all.js [R,L] + + SSLProxyEngine on + ProxyAddHeaders Off + ProxyPass / https://www.oxfordreference.com/ + ProxyPassReverse / https://www.oxfordreference.com/ + + Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3" + #Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1" +# if there are problems, remove traling / + Header edit* Location "https://www.oxfordreference.com/" "https://www.oxfordreference.com.p.vbz.ffzg.hr/" + + RequestHeader unset Accept-Encoding + Substitute "s|https://www.oxfordreference.com|https://www.oxfordreference.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 + + + +## add domains to SSL certificate: +# www.oxfordreference.com.p.vbz.ffzg.hr diff --git a/providers/www.statista.com.conf b/providers/www.statista.com.conf new file mode 100644 index 0000000..0d448d6 --- /dev/null +++ b/providers/www.statista.com.conf @@ -0,0 +1,39 @@ +# ./add-provider.pl www.statista.com + + + + + Include /srv/via-proxy/ssl.conf + + ServerName www.statista.com.p.vbz.ffzg.hr + + RewriteEngine on + # fix broken chunging + #RewriteRule /common/javascript/extjs/ext-all.js https://www.statista.com/common/javascript/extjs/ext-all.js [R,L] + + SSLProxyEngine on + ProxyAddHeaders Off + ProxyPass / https://www.statista.com/ + ProxyPassReverse / https://www.statista.com/ + + Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3" + #Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1" +# if there are problems, remove traling / + Header edit* Location "https://www.statista.com/" "https://www.statista.com.p.vbz.ffzg.hr/" + + RequestHeader unset Accept-Encoding + Substitute "s|https://www.statista.com|https://www.statista.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 + + + +## add domains to SSL certificate: +# www.statista.com.p.vbz.ffzg.hr -- 2.20.1