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