added missing asistdl.onlinelibrary.wiley.com
[via-proxy] / p.vbz.ffzg.hr.conf
1 # test with
2 # wget --server-response -O /dev/null http://www.nature.com.p.vbz.ffzg.hr/
3
4 <VirtualHost *:443>
5         Include /srv/via-proxy/ssl.conf
6         ServerName muse.jhu.edu.p.vbz.ffzg.hr
7         SSLProxyEngine on
8         ProxyAddHeaders Off
9
10         ProxyPass / https://muse.jhu.edu/
11         ProxyPassReverse / https://muse.jhu.edu/
12         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
13         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
14
15         RequestHeader unset Accept-Encoding
16         Substitute "s|https://muse.jhu.edu/|https://muse.jhu.edu.p.vbz.ffzg.hr/|"
17         Substitute "s|https://about.muse.jhu.edu/|https://about.muse.jhu.edu.p.vbz.ffzg.hr/|"
18         FilterDeclare NEWPATHS
19         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
20         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
21         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
22         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
23         FilterChain NEWPATHS
24         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
25 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
26 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
27 </VirtualHost>
28
29 <VirtualHost *:443>
30         Include /srv/via-proxy/ssl.conf
31         ServerName about.muse.jhu.edu.p.vbz.ffzg.hr
32         SSLProxyEngine on
33         ProxyAddHeaders Off
34
35         ProxyPass / https://about.muse.jhu.edu/
36         ProxyPassReverse / https://about.muse.jhu.edu/
37         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
38         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
39
40         RequestHeader unset Accept-Encoding
41         Substitute "s|https://muse.jhu.edu/|https://muse.jhu.edu.p.vbz.ffzg.hr/|"
42         Substitute "s|https://about.muse.jhu.edu/|https://about.muse.jhu.edu.p.vbz.ffzg.hr/|"
43         FilterDeclare NEWPATHS
44         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
45         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
46         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
47         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
48         FilterChain NEWPATHS
49         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
50 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
51 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
52 </VirtualHost>
53
54 # a2enmod proxy_http proxy_html xml2enc headers
55
56 # https://www.oclc.org/support/services/ezproxy/documentation/db/cambridgecore.en.html
57
58 <VirtualHost *:443>
59         Include /srv/via-proxy/ssl.conf
60
61         ServerName www.cambridge.org.p.vbz.ffzg.hr
62         SSLProxyEngine on
63         ProxyAddHeaders Off
64         ProxyPass / https://www.cambridge.org/
65         ProxyPassReverse / https://www.cambridge.org/
66         #ProxyPassReverseCookieDomain www.cambridge.org www.cambridge.org.p.vbz.ffzg.hr
67         #ProxyPassReverseCookieDomain cambridge.org cambridge.org.p.vbz.ffzg.hr
68         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
69         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
70
71         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
72
73         #ProxyHTMLLogVerbose On
74         LogLevel Debug
75
76         #SetOutputFilter        INFLATE;DEFLATE
77         RequestHeader unset Accept-Encoding
78
79         ProxyRequests off
80
81 #       ProxyHTMLEnable On
82 #       ProxyHTMLExtended On
83 #       ProxyHTMLURLMap http://www.cambridge.org /
84
85 # a2enmod substitute
86 Substitute "s|http://www.cambridge.org/|/|n"
87 Substitute "s|https://www.cambridge.org/|/|n"
88 FilterDeclare NEWPATHS
89 FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
90 FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
91 FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
92 FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
93 FilterChain NEWPATHS
94
95 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
96 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
97 </VirtualHost>
98
99 <VirtualHost *:443>
100         Include /srv/via-proxy/ssl.conf
101
102         ServerName search.proquest.com.p.vbz.ffzg.hr
103         SSLProxyEngine on
104         ProxyAddHeaders Off
105         ProxyPass / https://search.proquest.com/
106         ProxyPassReverse / https://search.proquest.com/
107
108         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
109         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
110
111 RequestHeader unset Accept-Encoding
112 Substitute "s|https://search.proquest.com/|/|n"
113 FilterDeclare NEWPATHS2
114 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
115 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
116 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
117 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
118 FilterChain NEWPATHS2
119
120         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
121 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
122 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
123 </VirtualHost>
124
125 <VirtualHost *:443>
126         Include /srv/via-proxy/ssl.conf
127
128         ServerName academic.oup.com.p.vbz.ffzg.hr
129         SSLProxyEngine on
130         ProxyAddHeaders Off
131         ProxyPass        / https://academic.oup.com/
132         ProxyPassReverse / https://academic.oup.com/
133
134         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
135         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
136
137         RequestHeader unset Accept-Encoding
138
139 Substitute "s|https://academic.oup.com/|/|n"
140 FilterDeclare NEWPATHS2
141 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
142 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
143 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
144 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
145 FilterChain NEWPATHS2
146
147         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
148 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
149 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
150 </VirtualHost>
151
152 # https://www.oclc.org/support/services/ezproxy/documentation/db/ovid.en.html
153 <VirtualHost *:443>
154         Include /srv/via-proxy/ssl.conf
155
156         ServerName ovidsp.tx.ovid.com.p.vbz.ffzg.hr
157         SSLProxyEngine on
158         ProxyAddHeaders Off
159         ProxyPass        / https://ovidsp.tx.ovid.com/
160         ProxyPassReverse / https://ovidsp.tx.ovid.com/
161
162         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
163         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
164
165         RequestHeader unset Accept-Encoding
166
167 Substitute "s|https://ovidsp.tx.ovid.com/|/|n"
168 FilterDeclare NEWPATHS2
169 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
170 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
171 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
172 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
173 FilterChain NEWPATHS2
174
175         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
176 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
177 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
178 </VirtualHost>
179
180
181 <VirtualHost *:443>
182         Include /srv/via-proxy/ssl.conf
183
184         ServerName pubs.rsc.org.p.vbz.ffzg.hr
185         SSLProxyEngine on
186         ProxyAddHeaders Off
187
188         ProxyPass        /_rsc-cdn_/ https://www.rsc-cdn.org/
189         ProxyPassReverse /_rsc-cdn_/ https://www.rsc-cdn.org/
190
191         ProxyPass        / https://pubs.rsc.org/
192         ProxyPassReverse / https://pubs.rsc.org/
193
194         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
195         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
196
197         RequestHeader unset Accept-Encoding
198         Substitute "s|https://[a-z-]*.rsc-cdn.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|"
199         Substitute "s|https://www.rsc.org/|https://www.rsc.org.p.vbz.ffzg.hr/|"
200         Substitute "s|https://pubs.rsc.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/|"
201         FilterDeclare NEWPATHS
202         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
203         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
204         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
205         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
206         FilterChain NEWPATHS
207
208         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
209 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
210 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
211 </VirtualHost>
212 <VirtualHost *:443>
213         Include /srv/via-proxy/ssl.conf
214
215         ServerName www.rsc.org.p.vbz.ffzg.hr
216
217         ProxyAddHeaders Off
218
219         ProxyPass        /_epi-rsc_/ https://epi-rsc.rsc-cdn.org/
220         ProxyPassReverse /_epi-rsc_/ https://epi-rsc.rsc-cdn.org/
221
222         ProxyPass        / https://www.rsc.org/
223         ProxyPassReverse / https://www.rsc.org/
224
225         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
226         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
227
228         RequestHeader unset Accept-Encoding
229         Substitute "s|https://epi-rsc.rsc-cdn.org/|https://www.rsc.org.p.vbz.ffzg.hr/_epi-rsc_/|"
230 #       Substitute "s|https://[a-z-]*.rsc-cdn.org/|https://www.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|"
231         Substitute "s|https://www.rsc.org/|https://www.rsc.org.p.vbz.ffzg.hr/|"
232         Substitute "s|https://pubs.rsc.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/|"
233         FilterDeclare NEWPATHS
234         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
235         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
236         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
237         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
238         FilterChain NEWPATHS
239
240         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
241 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
242 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
243 </VirtualHost>
244
245
246 <VirtualHost *:443>
247         Include /srv/via-proxy/ssl.conf
248
249         ServerName www.brepolis.net.p.vbz.ffzg.hr
250
251         ProxyAddHeaders Off
252
253         ProxyPass        / http://www.brepolis.net/
254         ProxyPassReverse / http://www.brepolis.net/
255
256         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
257         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
258
259         RequestHeader unset Accept-Encoding
260
261 Substitute "s|http://apps.brepolis.net/|https://apps.brepolis.net.p.vbz.ffzg.hr/|n"
262 FilterDeclare NEWPATHS2
263 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
264 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
265 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
266 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
267 FilterChain NEWPATHS2
268
269         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
270 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
271 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
272 </VirtualHost>
273 <VirtualHost *:443>
274         Include /srv/via-proxy/ssl.conf
275
276         ServerName apps.brepolis.net.p.vbz.ffzg.hr
277
278         ProxyAddHeaders Off
279
280         ProxyPass        / http://apps.brepolis.net/
281         ProxyPassReverse / http://apps.brepolis.net/
282
283         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
284         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
285
286         RequestHeader unset Accept-Encoding
287
288 Substitute "s|http://apps.brepolis.net/|https://apps.brepolis.net.p.vbz.ffzg.hr/|n"
289 FilterDeclare NEWPATHS2
290 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
291 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
292 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
293 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
294 FilterChain NEWPATHS2
295         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
296 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
297 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
298 </VirtualHost>
299
300
301 <VirtualHost *:443>
302         Include /srv/via-proxy/ssl.conf
303
304         ServerName www.cairn.info.p.vbz.ffzg.hr
305
306         SSLProxyEngine on
307         ProxyAddHeaders Off
308
309         ProxyPass        / https://www.cairn.info/
310         ProxyPassReverse / https://www.cairn.info/
311
312         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
313         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
314
315         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
316 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
317 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
318 </VirtualHost>
319
320
321 <VirtualHost *:443>
322         Include /srv/via-proxy/ssl.conf
323
324         ServerName www.degruyter.com.p.vbz.ffzg.hr
325
326         SSLProxyEngine on
327         ProxyAddHeaders Off
328
329         ProxyPass        / https://www.degruyter.com/
330         ProxyPassReverse / https://www.degruyter.com/
331
332         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
333         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
334
335         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
336 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
337 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
338 </VirtualHost>
339
340
341 <VirtualHost *:443>
342         Include /srv/via-proxy/ssl.conf
343
344         ServerName www.emeraldinsight.com.p.vbz.ffzg.hr
345
346         SSLProxyEngine on
347         ProxyAddHeaders Off
348         ProxyPass        / https://www.emeraldinsight.com/
349         ProxyPassReverse / https://www.emeraldinsight.com/
350
351         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
352         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
353
354         Header edit* Location "http://emeraldgrouppublishing.com/" "https://emeraldgrouppublishing.com.p.vbz.ffzg.hr/"
355
356 # they have hard-coded absolute links
357 RequestHeader unset Accept-Encoding
358 Substitute "s|https://www.emeraldinsight.com/|https://www.emeraldinsight.com.p.vbz.ffzg.hr/|n"
359 Substitute "s|http://www.emeraldgrouppublishing.com/|https://www.emeraldgrouppublishing.com.p.vbz.ffzg.hr/|n"
360 FilterDeclare NEWPATHS2
361 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
362 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
363 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
364 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
365 FilterChain NEWPATHS2
366
367         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
368 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
369 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
370 </VirtualHost>
371 <VirtualHost *:443>
372         Include /srv/via-proxy/ssl.conf
373
374         ServerName www.emeraldgrouppublishing.com.p.vbz.ffzg.hr
375         ServerAlias emeraldgrouppublishing.com.p.vbz.ffzg.hr
376
377         # FIXME target server for www.emeraldgrouppublishing.com doesn't have that in SSL cert
378         #SSLProxyEngine on
379         ProxyAddHeaders Off
380         ProxyPass        / http://www.emeraldgrouppublishing.com/
381         ProxyPassReverse / http://www.emeraldgrouppublishing.com/
382
383         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
384         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
385
386 # they have hard-coded absolute links
387 RequestHeader unset Accept-Encoding
388 Substitute "s|http://www.emeraldgrouppublishing.com/|https://www.emeraldgrouppublishing.com.p.vbz.ffzg.hr/|n"
389 Substitute "s|http://www.emeraldinsight.com/|https://www.emeraldinsight.com.p.vbz.ffzg.hr/|n"
390 FilterDeclare NEWPATHS2
391 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
392 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
393 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
394 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
395 FilterChain NEWPATHS2
396
397         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
398 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
399 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
400 </VirtualHost>
401
402 <VirtualHost *:443>
403         Include /srv/via-proxy/ssl.conf
404
405         ServerName www.webofknowledge.com.p.vbz.ffzg.hr
406
407         SSLProxyEngine on
408         ProxyAddHeaders Off
409         ProxyPass        / https://www.webofknowledge.com/
410         ProxyPassReverse / https://www.webofknowledge.com/
411
412         Header edit* Location "(https://apps.webofknowledge.com)/(.*)" "https://apps.webofknowledge.com.p.vbz.ffzg.hr/$2"
413
414         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
415         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
416
417 RequestHeader unset Accept-Encoding
418 Substitute "s|https://apps.webofknowledge.com/|https://apps.webofknowledge.com.p.vbz.ffzg.hr/|n"
419 FilterDeclare NEWPATHS2
420 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
421 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
422 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
423 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
424 FilterChain NEWPATHS2
425         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
426 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
427 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
428 </VirtualHost>
429
430 <VirtualHost *:443>
431         Include /srv/via-proxy/ssl.conf
432
433         ServerName apps.webofknowledge.com.p.vbz.ffzg.hr
434
435         SSLProxyEngine on
436         ProxyAddHeaders Off
437         ProxyPass        / https://apps.webofknowledge.com/
438         ProxyPassReverse / https://apps.webofknowledge.com/
439
440         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
441         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
442
443         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
444 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
445 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
446 </VirtualHost>
447
448
449 <VirtualHost *:443>
450         Include /srv/via-proxy/ssl.conf
451
452         ServerName www.jstor.org.p.vbz.ffzg.hr
453
454         SSLProxyEngine on
455         ProxyAddHeaders Off
456         ProxyPass        / https://www.jstor.org/
457         ProxyPassReverse / https://www.jstor.org/
458
459         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
460 #       Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
461
462         #Header edit* Referer "http://(.*)(?i:\.p\.vbz\.ffzg\.hr)" "https://$1$2"
463         RequestHeader edit* Referer "//(.*)(?i:\.p\.vbz\.ffzg\.hr)" "//$1$2"
464
465         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
466
467 #       Header set Access-Control-Allow-Origin "*"
468 #       Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept"
469
470         # jstor expects
471         # X-Requested-With: XMLHttpRequest
472         # https://www.jstor.org/ui_log/info
473         # https://www.jstor.org/access_details/?_=1535108073005
474         # https://www.jstor.org/workspace-service/get-dois?_=1535108073006
475         # https://www.jstor.org/tc/check/10.2307/40323659?_=1535108073007
476         # https://www.jstor.org/tc/accept?origin=%2Ftc%2Fcheck%2F10.2307%2F40323659%3F_%3D1535108073007
477         # https://www.jstor.org/ui_log/counter
478         #
479
480         #Header always set Access-Control-Allow-Origin "*"
481         #Header always set Access-Control-Max-Age "1000"
482         #Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
483
484
485         # OCLC has special case for this header
486 #       SetEnvIf X-Requested-With (.*) saved_x_requested_with=$1
487 #       RequestHeader set X-Requested-With "%{saved_x_requested_with}e"
488
489         #ForensicLog /var/log/apache2/forensic-jstor.log
490
491 RequestHeader unset Accept-Encoding
492 Substitute "s|//www.jstor.org/|//www.jstor.org.p.vbz.ffzg.hr/|n"
493 FilterDeclare NEWPATHS2
494 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
495 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
496 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
497 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
498 FilterChain NEWPATHS2
499
500 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
501 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
502 </VirtualHost>
503
504 <VirtualHost *:443>
505         Include /srv/via-proxy/ssl.conf
506
507         ServerName www.nature.com.p.vbz.ffzg.hr
508
509         SSLProxyEngine on
510         ProxyAddHeaders Off
511         ProxyPass        / https://www.nature.com/
512         ProxyPassReverse / https://www.nature.com/
513
514         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
515         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
516
517         Header edit* Location "https?://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/"
518
519 RequestHeader unset Accept-Encoding
520 Substitute "s|https://www.nature.com/|https://www.nature.com.p.vbz.ffzg.hr/|n"
521 FilterDeclare NEWPATHS2
522 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
523 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
524 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
525 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
526 FilterChain NEWPATHS2
527
528         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
529 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
530 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
531 </VirtualHost>
532 <VirtualHost *:443>
533         Include /srv/via-proxy/ssl.conf
534
535         ServerName idp.nature.com.p.vbz.ffzg.hr
536
537         SSLProxyEngine on
538         ProxyAddHeaders Off
539         ProxyPass        / https://idp.nature.com/
540         ProxyPassReverse / https://idp.nature.com/
541
542         Header edit* Location "https://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/"
543         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;][^;]+);" "$1 ; domain=$2.p.vbz.ffzg.hr;"
544         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
545
546         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
547 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
548 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
549 </VirtualHost>
550
551
552 <VirtualHost *:443>
553         Include /srv/via-proxy/ssl.conf
554
555         ServerName www.palgrave.com.p.vbz.ffzg.hr
556
557 #DumpIOInput On
558 #DumpIOOutput On
559 #DumpIOLogLevel debug
560
561 #LogLevel debug
562
563         ProxyAddHeaders Off
564
565         SSLProxyEngine on
566         ProxyAddHeaders Off
567         ProxyPass        / https://www.palgrave.com/
568         ProxyPassReverse / https://www.palgrave.com/
569
570         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
571         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
572
573 RequestHeader unset Accept-Encoding
574 Substitute "s|https://www.palgrave.com|https://www.palgrave.com.p.vbz.ffzg.hr|n"
575 Substitute "s|http://www.palgrave.com|https://www.palgrave.com.p.vbz.ffzg.hr|n"
576 Substitute "s|http://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n"
577 Substitute "s|http://www.springer.com|https://www.springer.com.p.vbz.ffzg.hr|n"
578 FilterDeclare NEWPATHS2
579 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
580 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
581 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
582 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
583 FilterChain NEWPATHS2
584
585         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
586 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
587 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
588 </VirtualHost>
589
590 <VirtualHost *:443>
591         Include /srv/via-proxy/ssl.conf
592
593         ServerName www.springer.com.p.vbz.ffzg.hr
594
595         SSLProxyEngine on
596         ProxyAddHeaders Off
597         ProxyPass        / https://www.springer.com/
598         ProxyPassReverse / https://www.springer.com/
599
600         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
601         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
602
603 RequestHeader unset Accept-Encoding
604 Substitute "s|http://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n"
605 Substitute "s|http://www.springer.com|https://www.springer.com.p.vbz.ffzg.hr|n"
606 FilterDeclare NEWPATHS2
607 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
608 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
609 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
610 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
611 FilterChain NEWPATHS2
612
613         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
614 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
615 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
616 </VirtualHost>
617 <VirtualHost *:443>
618         Include /srv/via-proxy/ssl.conf
619
620         ServerName link.springer.com.p.vbz.ffzg.hr
621
622         # download links to pdf have %2F instead of / in them
623         AllowEncodedSlashes On
624         # this might need nocanon in ProxyPass too!
625
626         SSLProxyEngine on
627         ProxyAddHeaders Off
628         ProxyPass        / https://link.springer.com/
629         ProxyPassReverse / https://link.springer.com/
630
631         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
632         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
633
634 RequestHeader unset Accept-Encoding
635 Substitute "s|http://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n"
636 Substitute "s|http://www.springer.com|https://www.springer.com.p.vbz.ffzg.hr|n"
637 FilterDeclare NEWPATHS2
638 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
639 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
640 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
641 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
642 FilterChain NEWPATHS2
643
644         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
645 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
646 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
647 </VirtualHost>
648
649 <VirtualHost *:443>
650         Include /srv/via-proxy/ssl.conf
651
652         ServerName www.tandfonline.com.p.vbz.ffzg.hr
653
654         SSLProxyEngine on
655         ProxyAddHeaders Off
656         ProxyPass        / https://www.tandfonline.com/
657         ProxyPassReverse / https://www.tandfonline.com/
658
659         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
660         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
661
662         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
663 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
664 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
665 </VirtualHost>
666
667 <VirtualHost *:443>
668         Include /srv/via-proxy/ssl.conf
669
670         ServerName www.sciencedirect.com.p.vbz.ffzg.hr
671
672         SSLProxyEngine on
673         ProxyAddHeaders Off
674         ProxyPass        / https://www.sciencedirect.com/
675         ProxyPassReverse / https://www.sciencedirect.com/
676
677         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
678         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
679
680
681         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
682 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
683 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
684 </VirtualHost>
685
686 <VirtualHost *:443>
687         Include /srv/via-proxy/ssl.conf
688
689         ServerName journals.bmj.com.p.vbz.ffzg.hr
690
691         RequestHeader unset Accept-Encoding
692         Substitute "s|(https:)?//(\w+)\.bmj\.com/|https://journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$2/_path_/|"
693 #       Substitute "s|//(.*)\.bmj\.com/|//journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$1/_path_/|"
694         FilterDeclare NEWPATHS
695         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
696         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
697         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
698         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
699         FilterChain NEWPATHS
700
701         # fix all other plain http resources
702         RewriteEngine on
703         RewriteRule     /_rewrite_/(.*)/_path_/(.*)     https://$1.bmj.com/$2 [P,L]
704
705         SSLProxyEngine on
706         ProxyAddHeaders Off
707         ProxyPass        / https://journals.bmj.com/
708         ProxyPassReverse / https://journals.bmj.com/
709
710         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
711         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
712
713         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
714 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
715 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
716 </VirtualHost>
717
718 <VirtualHost *:443>
719         Include /srv/via-proxy/ssl.conf
720
721         ServerName ieeexplore.ieee.org.p.vbz.ffzg.hr
722
723         RequestHeader unset Accept-Encoding
724         Substitute "s|https://staticieeexplore.ieee.org/|https://ieeexplore.ieee.org.p.vbz.ffzg.hr/_static_/|n"
725         FilterDeclare NEWPATHS
726         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
727         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
728         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
729         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
730         FilterChain NEWPATHS
731
732         ProxyAddHeaders Off
733         ProxyPass        /_static_/ https://staticieeexplore.ieee.org/
734         ProxyPassReverse /_static_/ https://staticieeexplore.ieee.org/
735
736         # IEEE Xplore is transitioning to HTTPS on 9 April 2018.
737         SSLProxyEngine on
738         ProxyPass        / https://ieeexplore.ieee.org/
739         ProxyPassReverse / https://ieeexplore.ieee.org/
740
741         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
742         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
743
744         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
745 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
746 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
747 </VirtualHost>
748
749
750 <VirtualHost *:443>
751         Include /srv/via-proxy/ssl.conf
752
753         ServerName search.alexanderstreet.com.p.vbz.ffzg.hr
754
755         SSLProxyEngine on
756         ProxyAddHeaders Off
757         ProxyPass        / https://search.alexanderstreet.com/
758         ProxyPassReverse / https://search.alexanderstreet.com/
759
760         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
761         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
762
763         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
764 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
765 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
766 </VirtualHost>
767
768 <VirtualHost *:443>
769         Include /srv/via-proxy/ssl.conf
770
771         ServerName pubs.asha.org.p.vbz.ffzg.hr
772
773         SSLProxyEngine on
774         ProxyAddHeaders Off
775         ProxyPass        / https://pubs.asha.org/
776         ProxyPassReverse / https://pubs.asha.org/
777
778         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
779         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
780
781         Header edit* Location "https://leader.pubs.asha.org/" "https://leader.pubs.asha.org.p.vbz.ffzg.hr/"
782
783         RequestHeader unset Accept-Encoding
784         Substitute "s|https://pubs.asha.org|https://pubs.asha.org.p.vbz.ffzg.hr|"
785         Substitute "s|https://leader.pubs.asha.org|https://leader.pubs.asha.org.p.vbz.ffzg.hr|"
786         FilterDeclare NEWPATHS
787         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
788         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
789         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
790         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
791         FilterChain NEWPATHS
792
793         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
794 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
795 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
796 </VirtualHost>
797 <VirtualHost *:443>
798         Include /srv/via-proxy/ssl.conf
799
800         ServerName leader.pubs.asha.org.p.vbz.ffzg.hr
801
802         SSLProxyEngine on
803         ProxyAddHeaders Off
804         ProxyPass        / https://leader.pubs.asha.org/
805         ProxyPassReverse / https://leader.pubs.asha.org/
806
807         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
808         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
809
810         RequestHeader unset Accept-Encoding
811         Substitute "s|https://pubs.asha.org|https://pubs.asha.org.p.vbz.ffzg.hr|"
812         Substitute "s|https://leader.pubs.asha.org|https://leader.pubs.asha.org.p.vbz.ffzg.hr|"
813         FilterDeclare NEWPATHS
814         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
815         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
816         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
817         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
818         FilterChain NEWPATHS
819
820         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
821 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
822 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
823 </VirtualHost>
824
825 IncludeOptional /srv/via-proxy/providers/*.conf
826
827
828
829 NameVirtualHost *:443
830
831 <VirtualHost *:443>
832         Include /srv/via-proxy/ssl.conf
833
834         DocumentRoot /srv/via-proxy
835         <Directory /srv/via-proxy/>
836                 Require all granted
837         </Directory>
838         ServerName p.vbz.ffzg.hr
839         ServerAlias *.p.vbz.ffzg.hr
840         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
841
842         ProxyAddHeaders Off
843
844         #ForensicLog /var/log/apache2/forensic-p.vbz.ffzg.hr.log
845
846         ProxyPass        /mjesec/ http://mjesec.ffzg.hr/
847         ProxyPassReverse /mjesec/ http://mjesec.ffzg.hr/
848
849         RequestHeader edit* Referer "//(.*)(?i:\.p\.vbz\.ffzg\.hr)" "//$1$2"
850
851         ProxyPass        /via/ http://via.rot13.org/
852         ProxyPassReverse /via/ http://via.rot13.org/
853 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
854 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
855 </VirtualHost>
856
857 <VirtualHost *:80>
858         DocumentRoot /srv/via-proxy
859         <Directory /srv/via-proxy/>
860                 Require all granted
861         </Directory>
862         ServerName p.vbz.ffzg.hr
863         ServerAlias *.p.vbz.ffzg.hr
864         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
865
866         Redirect / https://p.vbz.ffzg.hr
867
868 </VirtualHost>
869