fix scopus location headers
[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 <VirtualHost *:443>
181         Include /srv/via-proxy/ssl.conf
182
183         ServerName onlinelibrary.wiley.com.p.vbz.ffzg.hr
184         SSLProxyEngine on
185         ProxyAddHeaders Off
186
187         ProxyPass        / https://onlinelibrary.wiley.com/
188         ProxyPassReverse / https://onlinelibrary.wiley.com/
189
190         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
191         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
192
193         Header edit* Location "https://anthrosource.onlinelibrary.wiley.com" "https://anthrosource.onlinelibrary.wiley.com.p.vbz.ffzg.hr"
194         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
195 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
196 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
197 </VirtualHost>
198 <VirtualHost *:443>
199         Include /srv/via-proxy/ssl.conf
200
201         ServerName anthrosource.onlinelibrary.wiley.com.p.vbz.ffzg.hr
202         SSLProxyEngine on
203         ProxyAddHeaders Off
204
205         ProxyPass        / https://anthrosource.onlinelibrary.wiley.com/
206         ProxyPassReverse / https://anthrosource.onlinelibrary.wiley.com/
207
208         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
209         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
210
211         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
212 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
213 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
214 </VirtualHost>
215
216 <VirtualHost *:443>
217         Include /srv/via-proxy/ssl.conf
218
219         ServerName journals.sagepub.com.p.vbz.ffzg.hr
220         SSLProxyEngine on
221         ProxyAddHeaders Off
222
223         ProxyPass        / https://journals.sagepub.com/
224         ProxyPassReverse / https://journals.sagepub.com/
225
226         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
227         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
228
229         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
230 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
231 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
232 </VirtualHost>
233
234 <VirtualHost *:443>
235         Include /srv/via-proxy/ssl.conf
236
237         ServerName pubs.rsc.org.p.vbz.ffzg.hr
238         SSLProxyEngine on
239         ProxyAddHeaders Off
240
241         ProxyPass        /_rsc-cdn_/ https://www.rsc-cdn.org/
242         ProxyPassReverse /_rsc-cdn_/ https://www.rsc-cdn.org/
243
244         ProxyPass        / https://pubs.rsc.org/
245         ProxyPassReverse / https://pubs.rsc.org/
246
247         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
248         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
249
250         RequestHeader unset Accept-Encoding
251         Substitute "s|https://[a-z-]*.rsc-cdn.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|"
252         Substitute "s|https://www.rsc.org/|https://www.rsc.org.p.vbz.ffzg.hr/|"
253         Substitute "s|https://pubs.rsc.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/|"
254         FilterDeclare NEWPATHS
255         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
256         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
257         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
258         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
259         FilterChain NEWPATHS
260
261         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
262 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
263 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
264 </VirtualHost>
265 <VirtualHost *:443>
266         Include /srv/via-proxy/ssl.conf
267
268         ServerName www.rsc.org.p.vbz.ffzg.hr
269
270         ProxyAddHeaders Off
271
272         ProxyPass        /_epi-rsc_/ https://epi-rsc.rsc-cdn.org/
273         ProxyPassReverse /_epi-rsc_/ https://epi-rsc.rsc-cdn.org/
274
275         ProxyPass        / https://www.rsc.org/
276         ProxyPassReverse / https://www.rsc.org/
277
278         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
279         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
280
281         RequestHeader unset Accept-Encoding
282         Substitute "s|https://epi-rsc.rsc-cdn.org/|https://www.rsc.org.p.vbz.ffzg.hr/_epi-rsc_/|"
283 #       Substitute "s|https://[a-z-]*.rsc-cdn.org/|https://www.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|"
284         Substitute "s|https://www.rsc.org/|https://www.rsc.org.p.vbz.ffzg.hr/|"
285         Substitute "s|https://pubs.rsc.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/|"
286         FilterDeclare NEWPATHS
287         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
288         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
289         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
290         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
291         FilterChain NEWPATHS
292
293         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
294 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
295 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
296 </VirtualHost>
297
298
299 <VirtualHost *:443>
300         Include /srv/via-proxy/ssl.conf
301
302         ServerName www.brepolis.net.p.vbz.ffzg.hr
303
304         ProxyAddHeaders Off
305
306         ProxyPass        / http://www.brepolis.net/
307         ProxyPassReverse / http://www.brepolis.net/
308
309         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
310         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
311
312         RequestHeader unset Accept-Encoding
313
314 Substitute "s|http://apps.brepolis.net/|https://apps.brepolis.net.p.vbz.ffzg.hr/|n"
315 FilterDeclare NEWPATHS2
316 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
317 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
318 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
319 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
320 FilterChain NEWPATHS2
321
322         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
323 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
324 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
325 </VirtualHost>
326 <VirtualHost *:443>
327         Include /srv/via-proxy/ssl.conf
328
329         ServerName apps.brepolis.net.p.vbz.ffzg.hr
330
331         ProxyAddHeaders Off
332
333         ProxyPass        / http://apps.brepolis.net/
334         ProxyPassReverse / http://apps.brepolis.net/
335
336         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
337         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
338
339         RequestHeader unset Accept-Encoding
340
341 Substitute "s|http://apps.brepolis.net/|https://apps.brepolis.net.p.vbz.ffzg.hr/|n"
342 FilterDeclare NEWPATHS2
343 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
344 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
345 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
346 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
347 FilterChain NEWPATHS2
348         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
349 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
350 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
351 </VirtualHost>
352
353
354 <VirtualHost *:443>
355         Include /srv/via-proxy/ssl.conf
356
357         ServerName www.cairn.info.p.vbz.ffzg.hr
358
359         SSLProxyEngine on
360         ProxyAddHeaders Off
361
362         ProxyPass        / https://www.cairn.info/
363         ProxyPassReverse / https://www.cairn.info/
364
365         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
366         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
367
368         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
369 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
370 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
371 </VirtualHost>
372
373
374 <VirtualHost *:443>
375         Include /srv/via-proxy/ssl.conf
376
377         ServerName www.degruyter.com.p.vbz.ffzg.hr
378
379         SSLProxyEngine on
380         ProxyAddHeaders Off
381
382         ProxyPass        / https://www.degruyter.com/
383         ProxyPassReverse / https://www.degruyter.com/
384
385         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
386         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
387
388         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
389 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
390 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
391 </VirtualHost>
392
393
394 <VirtualHost *:443>
395         Include /srv/via-proxy/ssl.conf
396
397         ServerName www.emeraldinsight.com.p.vbz.ffzg.hr
398
399         SSLProxyEngine on
400         ProxyAddHeaders Off
401         ProxyPass        / https://www.emeraldinsight.com/
402         ProxyPassReverse / https://www.emeraldinsight.com/
403
404         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
405         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
406
407         Header edit* Location "http://emeraldgrouppublishing.com/" "https://emeraldgrouppublishing.com.p.vbz.ffzg.hr/"
408
409 # they have hard-coded absolute links
410 RequestHeader unset Accept-Encoding
411 Substitute "s|https://www.emeraldinsight.com/|https://www.emeraldinsight.com.p.vbz.ffzg.hr/|n"
412 Substitute "s|http://www.emeraldgrouppublishing.com/|https://www.emeraldgrouppublishing.com.p.vbz.ffzg.hr/|n"
413 FilterDeclare NEWPATHS2
414 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
415 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
416 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
417 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
418 FilterChain NEWPATHS2
419
420         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
421 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
422 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
423 </VirtualHost>
424 <VirtualHost *:443>
425         Include /srv/via-proxy/ssl.conf
426
427         ServerName www.emeraldgrouppublishing.com.p.vbz.ffzg.hr
428         ServerAlias emeraldgrouppublishing.com.p.vbz.ffzg.hr
429
430         # FIXME target server for www.emeraldgrouppublishing.com doesn't have that in SSL cert
431         #SSLProxyEngine on
432         ProxyAddHeaders Off
433         ProxyPass        / http://www.emeraldgrouppublishing.com/
434         ProxyPassReverse / http://www.emeraldgrouppublishing.com/
435
436         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
437         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
438
439 # they have hard-coded absolute links
440 RequestHeader unset Accept-Encoding
441 Substitute "s|http://www.emeraldgrouppublishing.com/|https://www.emeraldgrouppublishing.com.p.vbz.ffzg.hr/|n"
442 Substitute "s|http://www.emeraldinsight.com/|https://www.emeraldinsight.com.p.vbz.ffzg.hr/|n"
443 FilterDeclare NEWPATHS2
444 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
445 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
446 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
447 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
448 FilterChain NEWPATHS2
449
450         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
451 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
452 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
453 </VirtualHost>
454
455 <VirtualHost *:443>
456         Include /srv/via-proxy/ssl.conf
457
458         ServerName www.webofknowledge.com.p.vbz.ffzg.hr
459
460         SSLProxyEngine on
461         ProxyAddHeaders Off
462         ProxyPass        / https://www.webofknowledge.com/
463         ProxyPassReverse / https://www.webofknowledge.com/
464
465         Header edit* Location "(https://apps.webofknowledge.com)/(.*)" "https://apps.webofknowledge.com.p.vbz.ffzg.hr/$2"
466
467         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
468         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
469
470 RequestHeader unset Accept-Encoding
471 Substitute "s|https://apps.webofknowledge.com/|https://apps.webofknowledge.com.p.vbz.ffzg.hr/|n"
472 FilterDeclare NEWPATHS2
473 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
474 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
475 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
476 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
477 FilterChain NEWPATHS2
478         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
479 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
480 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
481 </VirtualHost>
482
483 <VirtualHost *:443>
484         Include /srv/via-proxy/ssl.conf
485
486         ServerName apps.webofknowledge.com.p.vbz.ffzg.hr
487
488         SSLProxyEngine on
489         ProxyAddHeaders Off
490         ProxyPass        / https://apps.webofknowledge.com/
491         ProxyPassReverse / https://apps.webofknowledge.com/
492
493         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
494         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
495
496         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
497 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
498 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
499 </VirtualHost>
500
501
502 <VirtualHost *:443>
503         Include /srv/via-proxy/ssl.conf
504
505         ServerName www.jstor.org.p.vbz.ffzg.hr
506
507         SSLProxyEngine on
508         ProxyAddHeaders Off
509         ProxyPass        / https://www.jstor.org/
510         ProxyPassReverse / https://www.jstor.org/
511
512         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
513 #       Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
514
515         #Header edit* Referer "http://(.*)(?i:\.p\.vbz\.ffzg\.hr)" "https://$1$2"
516         RequestHeader edit* Referer "//(.*)(?i:\.p\.vbz\.ffzg\.hr)" "//$1$2"
517
518         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
519
520 #       Header set Access-Control-Allow-Origin "*"
521 #       Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept"
522
523         # jstor expects
524         # X-Requested-With: XMLHttpRequest
525         # https://www.jstor.org/ui_log/info
526         # https://www.jstor.org/access_details/?_=1535108073005
527         # https://www.jstor.org/workspace-service/get-dois?_=1535108073006
528         # https://www.jstor.org/tc/check/10.2307/40323659?_=1535108073007
529         # https://www.jstor.org/tc/accept?origin=%2Ftc%2Fcheck%2F10.2307%2F40323659%3F_%3D1535108073007
530         # https://www.jstor.org/ui_log/counter
531         #
532
533         #Header always set Access-Control-Allow-Origin "*"
534         #Header always set Access-Control-Max-Age "1000"
535         #Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
536
537
538         # OCLC has special case for this header
539 #       SetEnvIf X-Requested-With (.*) saved_x_requested_with=$1
540 #       RequestHeader set X-Requested-With "%{saved_x_requested_with}e"
541
542         #ForensicLog /var/log/apache2/forensic-jstor.log
543
544 RequestHeader unset Accept-Encoding
545 Substitute "s|//www.jstor.org/|//www.jstor.org.p.vbz.ffzg.hr/|n"
546 FilterDeclare NEWPATHS2
547 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
548 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
549 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
550 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
551 FilterChain NEWPATHS2
552
553 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
554 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
555 </VirtualHost>
556
557 <VirtualHost *:443>
558         Include /srv/via-proxy/ssl.conf
559
560         ServerName www.nature.com.p.vbz.ffzg.hr
561
562         SSLProxyEngine on
563         ProxyAddHeaders Off
564         ProxyPass        / https://www.nature.com/
565         ProxyPassReverse / https://www.nature.com/
566
567         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
568         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
569
570         Header edit* Location "https?://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/"
571
572 RequestHeader unset Accept-Encoding
573 Substitute "s|https://www.nature.com/|https://www.nature.com.p.vbz.ffzg.hr/|n"
574 FilterDeclare NEWPATHS2
575 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
576 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
577 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
578 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
579 FilterChain NEWPATHS2
580
581         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
582 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
583 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
584 </VirtualHost>
585 <VirtualHost *:443>
586         Include /srv/via-proxy/ssl.conf
587
588         ServerName idp.nature.com.p.vbz.ffzg.hr
589
590         SSLProxyEngine on
591         ProxyAddHeaders Off
592         ProxyPass        / https://idp.nature.com/
593         ProxyPassReverse / https://idp.nature.com/
594
595         Header edit* Location "https://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/"
596         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;][^;]+);" "$1 ; domain=$2.p.vbz.ffzg.hr;"
597         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
598
599         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
600 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
601 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
602 </VirtualHost>
603
604
605 <VirtualHost *:443>
606         Include /srv/via-proxy/ssl.conf
607
608         ServerName www.palgrave.com.p.vbz.ffzg.hr
609
610 #DumpIOInput On
611 #DumpIOOutput On
612 #DumpIOLogLevel debug
613
614 #LogLevel debug
615
616         ProxyAddHeaders Off
617
618         SSLProxyEngine on
619         ProxyAddHeaders Off
620         ProxyPass        / https://www.palgrave.com/
621         ProxyPassReverse / https://www.palgrave.com/
622
623         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
624         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
625
626 RequestHeader unset Accept-Encoding
627 Substitute "s|https://www.palgrave.com|https://www.palgrave.com.p.vbz.ffzg.hr|n"
628 Substitute "s|http://www.palgrave.com|https://www.palgrave.com.p.vbz.ffzg.hr|n"
629 Substitute "s|http://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n"
630 Substitute "s|http://www.springer.com|https://www.springer.com.p.vbz.ffzg.hr|n"
631 FilterDeclare NEWPATHS2
632 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
633 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
634 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
635 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
636 FilterChain NEWPATHS2
637
638         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
639 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
640 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
641 </VirtualHost>
642
643 <VirtualHost *:443>
644         Include /srv/via-proxy/ssl.conf
645
646         ServerName www.springer.com.p.vbz.ffzg.hr
647
648         SSLProxyEngine on
649         ProxyAddHeaders Off
650         ProxyPass        / https://www.springer.com/
651         ProxyPassReverse / https://www.springer.com/
652
653         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
654         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
655
656 RequestHeader unset Accept-Encoding
657 Substitute "s|http://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n"
658 Substitute "s|http://www.springer.com|https://www.springer.com.p.vbz.ffzg.hr|n"
659 FilterDeclare NEWPATHS2
660 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
661 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
662 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
663 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
664 FilterChain NEWPATHS2
665
666         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
667 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
668 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
669 </VirtualHost>
670 <VirtualHost *:443>
671         Include /srv/via-proxy/ssl.conf
672
673         ServerName link.springer.com.p.vbz.ffzg.hr
674
675         # download links to pdf have %2F instead of / in them
676         AllowEncodedSlashes On
677         # this might need nocanon in ProxyPass too!
678
679         SSLProxyEngine on
680         ProxyAddHeaders Off
681         ProxyPass        / https://link.springer.com/
682         ProxyPassReverse / https://link.springer.com/
683
684         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
685         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
686
687 RequestHeader unset Accept-Encoding
688 Substitute "s|http://link.springer.com|https://link.springer.com.p.vbz.ffzg.hr|n"
689 Substitute "s|http://www.springer.com|https://www.springer.com.p.vbz.ffzg.hr|n"
690 FilterDeclare NEWPATHS2
691 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
692 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
693 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
694 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
695 FilterChain NEWPATHS2
696
697         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
698 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
699 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
700 </VirtualHost>
701
702 <VirtualHost *:443>
703         Include /srv/via-proxy/ssl.conf
704
705         ServerName www.tandfonline.com.p.vbz.ffzg.hr
706
707         SSLProxyEngine on
708         ProxyAddHeaders Off
709         ProxyPass        / https://www.tandfonline.com/
710         ProxyPassReverse / https://www.tandfonline.com/
711
712         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
713         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
714
715         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
716 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
717 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
718 </VirtualHost>
719
720 <VirtualHost *:443>
721         Include /srv/via-proxy/ssl.conf
722
723         ServerName www.sciencedirect.com.p.vbz.ffzg.hr
724
725         SSLProxyEngine on
726         ProxyAddHeaders Off
727         ProxyPass        / https://www.sciencedirect.com/
728         ProxyPassReverse / https://www.sciencedirect.com/
729
730         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
731         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
732
733
734         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
735 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
736 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
737 </VirtualHost>
738
739 <VirtualHost *:443>
740         Include /srv/via-proxy/ssl.conf
741
742         ServerName journals.bmj.com.p.vbz.ffzg.hr
743
744         RequestHeader unset Accept-Encoding
745         Substitute "s|(https:)?//(\w+)\.bmj\.com/|https://journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$2/_path_/|"
746 #       Substitute "s|//(.*)\.bmj\.com/|//journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$1/_path_/|"
747         FilterDeclare NEWPATHS
748         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
749         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
750         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
751         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
752         FilterChain NEWPATHS
753
754         # fix all other plain http resources
755         RewriteEngine on
756         RewriteRule     /_rewrite_/(.*)/_path_/(.*)     https://$1.bmj.com/$2 [P,L]
757
758         SSLProxyEngine on
759         ProxyAddHeaders Off
760         ProxyPass        / https://journals.bmj.com/
761         ProxyPassReverse / https://journals.bmj.com/
762
763         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
764         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
765
766         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
767 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
768 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
769 </VirtualHost>
770
771 <VirtualHost *:443>
772         Include /srv/via-proxy/ssl.conf
773
774         ServerName ieeexplore.ieee.org.p.vbz.ffzg.hr
775
776         RequestHeader unset Accept-Encoding
777         Substitute "s|https://staticieeexplore.ieee.org/|https://ieeexplore.ieee.org.p.vbz.ffzg.hr/_static_/|n"
778         FilterDeclare NEWPATHS
779         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
780         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
781         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
782         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
783         FilterChain NEWPATHS
784
785         ProxyAddHeaders Off
786         ProxyPass        /_static_/ https://staticieeexplore.ieee.org/
787         ProxyPassReverse /_static_/ https://staticieeexplore.ieee.org/
788
789         # IEEE Xplore is transitioning to HTTPS on 9 April 2018.
790         SSLProxyEngine on
791         ProxyPass        / https://ieeexplore.ieee.org/
792         ProxyPassReverse / https://ieeexplore.ieee.org/
793
794         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
795         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
796
797         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
798 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
799 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
800 </VirtualHost>
801
802
803 <VirtualHost *:443>
804         Include /srv/via-proxy/ssl.conf
805
806         ServerName search.alexanderstreet.com.p.vbz.ffzg.hr
807
808         SSLProxyEngine on
809         ProxyAddHeaders Off
810         ProxyPass        / https://search.alexanderstreet.com/
811         ProxyPassReverse / https://search.alexanderstreet.com/
812
813         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
814         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
815
816         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
817 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
818 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
819 </VirtualHost>
820
821 <VirtualHost *:443>
822         Include /srv/via-proxy/ssl.conf
823
824         ServerName pubs.asha.org.p.vbz.ffzg.hr
825
826         SSLProxyEngine on
827         ProxyAddHeaders Off
828         ProxyPass        / https://pubs.asha.org/
829         ProxyPassReverse / https://pubs.asha.org/
830
831         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
832         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
833
834         Header edit* Location "https://leader.pubs.asha.org/" "https://leader.pubs.asha.org.p.vbz.ffzg.hr/"
835
836         RequestHeader unset Accept-Encoding
837         Substitute "s|https://pubs.asha.org|https://pubs.asha.org.p.vbz.ffzg.hr|"
838         Substitute "s|https://leader.pubs.asha.org|https://leader.pubs.asha.org.p.vbz.ffzg.hr|"
839         FilterDeclare NEWPATHS
840         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
841         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
842         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
843         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
844         FilterChain NEWPATHS
845
846         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
847 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
848 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
849 </VirtualHost>
850 <VirtualHost *:443>
851         Include /srv/via-proxy/ssl.conf
852
853         ServerName leader.pubs.asha.org.p.vbz.ffzg.hr
854
855         SSLProxyEngine on
856         ProxyAddHeaders Off
857         ProxyPass        / https://leader.pubs.asha.org/
858         ProxyPassReverse / https://leader.pubs.asha.org/
859
860         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
861         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
862
863         RequestHeader unset Accept-Encoding
864         Substitute "s|https://pubs.asha.org|https://pubs.asha.org.p.vbz.ffzg.hr|"
865         Substitute "s|https://leader.pubs.asha.org|https://leader.pubs.asha.org.p.vbz.ffzg.hr|"
866         FilterDeclare NEWPATHS
867         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
868         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
869         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
870         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
871         FilterChain NEWPATHS
872
873         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
874 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
875 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
876 </VirtualHost>
877
878 IncludeOptional /srv/via-proxy/providers/*.conf
879
880
881
882 NameVirtualHost *:443
883
884 <VirtualHost *:443>
885         Include /srv/via-proxy/ssl.conf
886
887         DocumentRoot /srv/via-proxy
888         <Directory /srv/via-proxy/>
889                 Require all granted
890         </Directory>
891         ServerName p.vbz.ffzg.hr
892         ServerAlias *.p.vbz.ffzg.hr
893         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
894
895         ProxyAddHeaders Off
896
897         #ForensicLog /var/log/apache2/forensic-p.vbz.ffzg.hr.log
898
899         ProxyPass        /mjesec/ http://mjesec.ffzg.hr/
900         ProxyPassReverse /mjesec/ http://mjesec.ffzg.hr/
901
902         RequestHeader edit* Referer "//(.*)(?i:\.p\.vbz\.ffzg\.hr)" "//$1$2"
903
904         ProxyPass        /via/ http://via.rot13.org/
905         ProxyPassReverse /via/ http://via.rot13.org/
906 SSLCertificateFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/fullchain.pem
907 SSLCertificateKeyFile /etc/letsencrypt/live/p.vbz.ffzg.hr-0001/privkey.pem
908 </VirtualHost>
909
910 <VirtualHost *:80>
911         DocumentRoot /srv/via-proxy
912         <Directory /srv/via-proxy/>
913                 Require all granted
914         </Directory>
915         ServerName p.vbz.ffzg.hr
916         ServerAlias *.p.vbz.ffzg.hr
917         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
918
919         Redirect / https://p.vbz.ffzg.hr
920
921 </VirtualHost>
922