two more providers
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 21 Apr 2020 16:41:22 +0000 (18:41 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 21 Apr 2020 16:41:22 +0000 (18:41 +0200)
index.html
providers/www.dbpia.co.kr.conf [new file with mode: 0644]
providers/www.krpia.co.kr.conf [new file with mode: 0644]

index 3ff4828..380e90a 100644 (file)
@@ -45,6 +45,9 @@
 
 <li><a href="https://www.loebclassics.com.p.vbz.ffzg.hr">Loeb Classical Library</a>
 
+<li><a href="https://www.krpia.co.kr.p.vbz.ffzg.hr/">KRpia</a>
+<li><a href="https://www.dbpia.co.kr.p.vbz.ffzg.hr/">DBpia</a>
+
 </ul>
 
 <ul>
diff --git a/providers/www.dbpia.co.kr.conf b/providers/www.dbpia.co.kr.conf
new file mode 100644 (file)
index 0000000..e2b07ac
--- /dev/null
@@ -0,0 +1,41 @@
+# ./add-provider.pl www.dbpia.co.kr
+
+
+
+<VirtualHost *:443>
+       Include /srv/via-proxy/ssl.conf
+
+       ServerName www.dbpia.co.kr.p.vbz.ffzg.hr
+
+       RewriteEngine on
+       # fix broken chunging
+       #RewriteRule    /common/javascript/extjs/ext-all.js     https://www.dbpia.co.kr/common/javascript/extjs/ext-all.js [R,L]
+
+       SSLProxyEngine on
+       ProxyAddHeaders Off
+       ProxyPass        / https://www.dbpia.co.kr/
+       ProxyPassReverse / https://www.dbpia.co.kr/
+
+       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.dbpia.co.kr/" "https://www.dbpia.co.kr.p.vbz.ffzg.hr/"
+
+       RequestHeader unset Accept-Encoding
+       #Substitute "s|https://www.dbpia.co.kr|https://www.dbpia.co.kr.p.vbz.ffzg.hr|"
+       # not using https to catch proxyUrl in javascript
+       Substitute "s|www.dbpia.co.kr|www.dbpia.co.kr.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
+</VirtualHost>
+
+
+## add domains to SSL certificate:
+# www.dbpia.co.kr.p.vbz.ffzg.hr
diff --git a/providers/www.krpia.co.kr.conf b/providers/www.krpia.co.kr.conf
new file mode 100644 (file)
index 0000000..e40ac45
--- /dev/null
@@ -0,0 +1,39 @@
+# ./add-provider.pl www.krpia.co.kr
+
+
+
+<VirtualHost *:443>
+       Include /srv/via-proxy/ssl.conf
+
+       ServerName www.krpia.co.kr.p.vbz.ffzg.hr
+
+       RewriteEngine on
+       # fix broken chunging
+       #RewriteRule    /common/javascript/extjs/ext-all.js     https://www.krpia.co.kr/common/javascript/extjs/ext-all.js [R,L]
+
+       SSLProxyEngine on
+       ProxyAddHeaders Off
+       ProxyPass        / https://www.krpia.co.kr/
+       ProxyPassReverse / https://www.krpia.co.kr/
+
+       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.krpia.co.kr/" "https://www.krpia.co.kr.p.vbz.ffzg.hr/"
+
+       RequestHeader unset Accept-Encoding
+       Substitute "s|https://www.krpia.co.kr|https://www.krpia.co.kr.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
+</VirtualHost>
+
+
+## add domains to SSL certificate:
+# www.krpia.co.kr.p.vbz.ffzg.hr