X-Git-Url: http://git.rot13.org/?p=via-proxy;a=blobdiff_plain;f=p.vbz.ffzg.hr.conf;h=0cc526453aae2a9034b802e52d81732fcac3df6d;hp=fa30764e7061c1909cfd24e9ccf54281990cc143;hb=8ed436573c8bd64389cc8f3622878bfbd9826fec;hpb=0d625c3196c6b38cfb7a8ab44eb19da7115a2aec diff --git a/p.vbz.ffzg.hr.conf b/p.vbz.ffzg.hr.conf index fa30764..0cc5264 100644 --- a/p.vbz.ffzg.hr.conf +++ b/p.vbz.ffzg.hr.conf @@ -683,37 +683,6 @@ SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem - - 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 -SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem -SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem - Include /srv/via-proxy/ssl.conf