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