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