added https://pubs.asha.org
[via-proxy] / p.vbz.ffzg.hr.conf
index ae34ddd..1220e48 100644 (file)
@@ -838,6 +838,58 @@ FilterChain NEWPATHS2
        CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
 </VirtualHost>
 
+<VirtualHost *:443>
+       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
+</VirtualHost>
+<VirtualHost *:443>
+       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
+</VirtualHost>