added www.loebclassics.com, moved ssl certs back into ssl.conf
[via-proxy] / providers / www.loebclassics.com.conf
1 # ./add-provider.pl www.loebclassics.com
2
3 <VirtualHost *:443>
4         Include /srv/via-proxy/ssl.conf
5
6         ServerName www.loebclassics.com.p.vbz.ffzg.hr
7
8         RewriteEngine on
9         # fix broken chunging
10         #RewriteRule    /common/javascript/extjs/ext-all.js     https://www.loebclassics.com/common/javascript/extjs/ext-all.js [R,L]
11
12         SSLProxyEngine on
13         ProxyAddHeaders Off
14         ProxyPass        / https://www.loebclassics.com/
15         ProxyPassReverse / https://www.loebclassics.com/
16
17         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
18         #Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
19 # if there are problems, remove traling /
20         Header edit* Location "https://www.loebclassics.com/" "https://www.loebclassics.com.p.vbz.ffzg.hr/"
21
22         RequestHeader unset Accept-Encoding
23         Substitute "s|https://www.loebclassics.com|https://www.loebclassics.com.p.vbz.ffzg.hr|"
24
25         FilterDeclare NEWPATHS
26         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
27         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
28         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
29         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
30         FilterChain NEWPATHS
31
32         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
33 </VirtualHost>
34
35
36 ## add domains to SSL certificate:
37 # www.loebclassics.com.p.vbz.ffzg.hr