fix AH01328: Line too long, URI /insight/static/js/vendor.js
[via-proxy] / providers / journals.sagepub.com.conf
1 # ./add-provider.pl journals.sagepub.com
2
3
4
5 <VirtualHost *:443>
6         Include /srv/via-proxy/ssl.conf
7
8         ServerName journals.sagepub.com.p.vbz.ffzg.hr
9
10         RewriteEngine on
11         # fix broken chunging
12         #RewriteRule    /common/javascript/extjs/ext-all.js     https://journals.sagepub.com/common/javascript/extjs/ext-all.js [R,L]
13
14         SSLProxyEngine on
15         ProxyAddHeaders Off
16         ProxyPass        / https://journals.sagepub.com/
17         ProxyPassReverse / https://journals.sagepub.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 # if there are problems, remove traling /
22         Header edit* Location "https://journals.sagepub.com/" "https://journals.sagepub.com.p.vbz.ffzg.hr/"
23
24         RequestHeader unset Accept-Encoding
25         Substitute "s|https://journals.sagepub.com|https://journals.sagepub.com.p.vbz.ffzg.hr|"
26
27         FilterDeclare NEWPATHS
28         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
29         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
30         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
31         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
32         FilterChain NEWPATHS
33
34         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
35 </VirtualHost>
36
37
38 ## add domains to SSL certificate:
39 # journals.sagepub.com.p.vbz.ffzg.hr