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