de0c994ea04e6d1873f8ae6e37f44ab62054e510
[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         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
147 </VirtualHost>
148
149 <VirtualHost *:443>
150         Include /srv/via-proxy/ssl.conf
151
152         ServerName journals.sagepub.com.p.vbz.ffzg.hr
153
154         ProxyAddHeaders Off
155
156         ProxyPass        / http://journals.sagepub.com/
157         ProxyPassReverse / http://journals.sagepub.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 pubs.rsc.org.p.vbz.ffzg.hr
169
170         ProxyAddHeaders Off
171
172         ProxyPass        /_rsc-cdn_/ http://www.rsc-cdn.org/
173         ProxyPassReverse /_rsc-cdn_/ http://www.rsc-cdn.org/
174
175         # FIXME -- this doesn't work behind https and include http resources
176         ProxyPass        / http://pubs.rsc.org/
177         ProxyPassReverse / http://pubs.rsc.org/
178
179         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
180         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
181
182         RequestHeader unset Accept-Encoding
183         Substitute "s|http://[a-z-]*.rsc-cdn.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|"
184         FilterDeclare NEWPATHS
185         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
186         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
187         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
188         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
189         FilterChain NEWPATHS
190
191         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
192 </VirtualHost>
193
194
195 <VirtualHost *:443>
196         Include /srv/via-proxy/ssl.conf
197
198         ServerName www.brepolis.net.p.vbz.ffzg.hr
199
200         ProxyAddHeaders Off
201
202         ProxyPass        / http://www.brepolis.net/
203         ProxyPassReverse / http://www.brepolis.net/
204
205         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
206         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
207
208         RequestHeader unset Accept-Encoding
209
210 Substitute "s|http://apps.brepolis.net/|https://apps.brepolis.net.p.vbz.ffzg.hr/|n"
211 FilterDeclare NEWPATHS2
212 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
213 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
214 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
215 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
216 FilterChain NEWPATHS2
217
218         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
219 </VirtualHost>
220 <VirtualHost *:443>
221         Include /srv/via-proxy/ssl.conf
222
223         ServerName apps.brepolis.net.p.vbz.ffzg.hr
224
225         ProxyAddHeaders Off
226
227         ProxyPass        / http://apps.brepolis.net/
228         ProxyPassReverse / http://apps.brepolis.net/
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
235 Substitute "s|http://apps.brepolis.net/|https://apps.brepolis.net.p.vbz.ffzg.hr/|n"
236 FilterDeclare NEWPATHS2
237 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
238 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
239 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
240 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
241 FilterChain NEWPATHS2
242         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
243 </VirtualHost>
244
245
246 <VirtualHost *:443>
247         Include /srv/via-proxy/ssl.conf
248
249         ServerName www.cairn.info.p.vbz.ffzg.hr
250
251         SSLProxyEngine on
252         ProxyAddHeaders Off
253
254         ProxyPass        / https://www.cairn.info/
255         ProxyPassReverse / https://www.cairn.info/
256
257         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
258         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
259
260         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
261 </VirtualHost>
262
263
264 <VirtualHost *:443>
265         Include /srv/via-proxy/ssl.conf
266
267         ServerName www.degruyter.com.p.vbz.ffzg.hr
268
269         SSLProxyEngine on
270         ProxyAddHeaders Off
271
272         ProxyPass        / https://www.degruyter.com/
273         ProxyPassReverse / https://www.degruyter.com/
274
275         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
276         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
277
278         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
279 </VirtualHost>
280
281
282 <VirtualHost *:443>
283         Include /srv/via-proxy/ssl.conf
284
285         ServerName www.emeraldinsight.com.p.vbz.ffzg.hr
286
287         SSLProxyEngine on
288         ProxyAddHeaders Off
289         ProxyPass        / https://www.emeraldinsight.com/
290         ProxyPassReverse / https://www.emeraldinsight.com/
291
292         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
293         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
294
295         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
296 </VirtualHost>
297
298 <VirtualHost *:443>
299         Include /srv/via-proxy/ssl.conf
300
301         ServerName www.webofknowledge.com.p.vbz.ffzg.hr
302
303         SSLProxyEngine on
304         ProxyAddHeaders Off
305         ProxyPass        / https://www.webofknowledge.com/
306         ProxyPassReverse / https://www.webofknowledge.com/
307
308         Header edit* Location "(https://apps.webofknowledge.com)/(.*)" "https://apps.webofknowledge.com.p.vbz.ffzg.hr/$2"
309
310         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
311         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
312
313 RequestHeader unset Accept-Encoding
314 Substitute "s|https://apps.webofknowledge.com/|https://apps.webofknowledge.com.p.vbz.ffzg.hr/|n"
315 FilterDeclare NEWPATHS2
316 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
317 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
318 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
319 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
320 FilterChain NEWPATHS2
321         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
322 </VirtualHost>
323
324 <VirtualHost *:443>
325         Include /srv/via-proxy/ssl.conf
326
327         ServerName apps.webofknowledge.com.p.vbz.ffzg.hr
328
329         SSLProxyEngine on
330         ProxyAddHeaders Off
331         ProxyPass        / https://apps.webofknowledge.com/
332         ProxyPassReverse / https://apps.webofknowledge.com/
333
334         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
335         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
336
337         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
338 </VirtualHost>
339
340
341 <VirtualHost *:443>
342         Include /srv/via-proxy/ssl.conf
343
344         ServerName www.jstor.org.p.vbz.ffzg.hr
345
346         #SSLProxyEngine on
347         # download pdf doesn't work if we use https://www.jstor.org !
348         ProxyAddHeaders Off
349         ProxyPass        / http://www.jstor.org/
350         ProxyPassReverse / http://www.jstor.org/
351
352         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
353         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
354
355 #       Header edit* Referer "http://(.*)(?i:\.p\.vbz\.ffzg\.hr)" "https://$1$2"
356
357         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
358
359         #Header add Access-Control-Allow-Origin ''
360         #Header add Access-Control-Allow-Headers "X-Requested-With, Content-Type"
361
362         #Header always set Access-Control-Allow-Origin "*"
363         #Header always set Access-Control-Max-Age "1000"
364         #Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
365
366
367         # OCLC has special case for this header
368 #       SetEnvIf X-Requested-With (.*) saved_x_requested_with=$1
369 #       RequestHeader set X-Requested-With "%{saved_x_requested_with}e"
370
371         #ForensicLog /var/log/apache2/forensic.log
372
373 #RequestHeader unset Accept-Encoding
374 #Substitute "s|http://www.jsor.org/|http://www.jstor.org.p.vbz.ffzg.hr/|n"
375 #FilterDeclare NEWPATHS2
376 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
377 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
378 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
379 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
380 #FilterChain NEWPATHS2
381
382 </VirtualHost>
383
384 <VirtualHost *:443>
385         Include /srv/via-proxy/ssl.conf
386
387         ServerName www.nature.com.p.vbz.ffzg.hr
388
389         SSLProxyEngine on
390         ProxyAddHeaders Off
391         ProxyPass        / https://www.nature.com/
392         ProxyPassReverse / https://www.nature.com/
393
394         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
395         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
396
397         Header edit* Location "https://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/"
398
399 RequestHeader unset Accept-Encoding
400 Substitute "s|http://www.nature.com/|https://www.nature.com.p.vbz.ffzg.hr/|n"
401 FilterDeclare NEWPATHS2
402 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
403 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
404 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
405 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
406 FilterChain NEWPATHS2
407
408         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
409 </VirtualHost>
410 <VirtualHost *:443>
411         Include /srv/via-proxy/ssl.conf
412
413         ServerName idp.nature.com.p.vbz.ffzg.hr
414
415         SSLProxyEngine on
416         ProxyAddHeaders Off
417         ProxyPass        / https://idp.nature.com/
418         ProxyPassReverse / https://idp.nature.com/
419
420         Header edit* Location "https://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/"
421         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;][^;]+);" "$1 ; domain=$2.p.vbz.ffzg.hr;"
422         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
423
424         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
425 </VirtualHost>
426
427
428 <VirtualHost *:443>
429         Include /srv/via-proxy/ssl.conf
430
431         ServerName www.palgrave.com.p.vbz.ffzg.hr
432
433 #DumpIOInput On
434 #DumpIOOutput On
435 #DumpIOLogLevel debug
436
437 #LogLevel debug
438
439         ProxyAddHeaders Off
440
441         SSLProxyEngine on
442         ProxyAddHeaders Off
443         ProxyPass        / https://www.palgrave.com/
444         ProxyPassReverse / https://www.palgrave.com/
445
446         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
447         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
448
449         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
450 </VirtualHost>
451
452 <VirtualHost *:443>
453         Include /srv/via-proxy/ssl.conf
454
455         ServerName link.springer.com.p.vbz.ffzg.hr
456
457         SSLProxyEngine on
458         ProxyAddHeaders Off
459         ProxyPass        / https://link.springer.com/
460         ProxyPassReverse / https://link.springer.com/
461
462         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
463         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
464
465         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
466 </VirtualHost>
467
468 <VirtualHost *:443>
469         Include /srv/via-proxy/ssl.conf
470
471         ServerName www.tandfonline.com.p.vbz.ffzg.hr
472
473         SSLProxyEngine on
474         ProxyAddHeaders Off
475         ProxyPass        / https://www.tandfonline.com/
476         ProxyPassReverse / https://www.tandfonline.com/
477
478         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
479         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
480
481         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
482 </VirtualHost>
483
484 <VirtualHost *:443>
485         Include /srv/via-proxy/ssl.conf
486
487         ServerName www.sciencedirect.com.p.vbz.ffzg.hr
488
489         SSLProxyEngine on
490         ProxyAddHeaders Off
491         ProxyPass        / https://www.sciencedirect.com/
492         ProxyPassReverse / https://www.sciencedirect.com/
493
494         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
495         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
496
497
498         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
499 </VirtualHost>
500
501 <VirtualHost *:443>
502         Include /srv/via-proxy/ssl.conf
503
504         ServerName www.scopus.com.p.vbz.ffzg.hr
505
506         SSLProxyEngine on
507         ProxyAddHeaders Off
508         ProxyPass        / https://www.scopus.com/
509         ProxyPassReverse / https://www.scopus.com/
510
511         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
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 <VirtualHost *:443>
518         Include /srv/via-proxy/ssl.conf
519
520         ServerName journals.bmj.com.p.vbz.ffzg.hr
521
522         RequestHeader unset Accept-Encoding
523         Substitute "s|(http:)?//(\w+)\.bmj\.com/|https://journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$2/_path_/|"
524 #       Substitute "s|//(.*)\.bmj\.com/|//journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$1/_path_/|"
525         FilterDeclare NEWPATHS
526         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
527         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
528         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
529         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
530         FilterChain NEWPATHS
531
532         # fix all other plain http resources
533         RewriteEngine on
534         RewriteRule     /_rewrite_/(.*)/_path_/(.*)     http://$1.bmj.com/$2 [P,L]
535
536         #SSLProxyEngine on
537         ProxyAddHeaders Off
538         ProxyPass        / http://journals.bmj.com/
539         ProxyPassReverse / http://journals.bmj.com/
540
541         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
542         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
543
544         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
545 </VirtualHost>
546
547 <VirtualHost *:443>
548         Include /srv/via-proxy/ssl.conf
549
550         ServerName journals.bmj.com.p.vbz.ffzg.hr
551
552         #SSLProxyEngine on
553         ProxyAddHeaders Off
554         ProxyPass        / http://journals.bmj.com/
555         ProxyPassReverse / http://journals.bmj.com/
556
557         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
558         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
559
560         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
561 </VirtualHost>
562
563 <VirtualHost *:443>
564         Include /srv/via-proxy/ssl.conf
565
566         ServerName ieeexplore.ieee.org.p.vbz.ffzg.hr
567
568         RequestHeader unset Accept-Encoding
569         Substitute "s|http://staticieeexplore.ieee.org/|https://ieeexplore.ieee.org.p.vbz.ffzg.hr/_static_/|n"
570         FilterDeclare NEWPATHS
571         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
572         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
573         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
574         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
575         FilterChain NEWPATHS
576
577         ProxyAddHeaders Off
578         ProxyPass        /_static_/ http://staticieeexplore.ieee.org/
579         ProxyPassReverse /_static_/ http://staticieeexplore.ieee.org/
580
581         # IEEE Xplore is transitioning to HTTPS on 9 April 2018.
582         #SSLProxyEngine on
583         ProxyPass        / http://ieeexplore.ieee.org/
584         ProxyPassReverse / http://ieeexplore.ieee.org/
585
586         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
587         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
588
589         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
590 </VirtualHost>
591
592 <VirtualHost *:443>
593         Include /srv/via-proxy/ssl.conf
594
595         ServerName jcr.incites.thomsonreuters.com.p.vbz.ffzg.hr
596
597         SSLProxyEngine on
598         ProxyAddHeaders Off
599         ProxyPass        / https://jcr.incites.thomsonreuters.com/
600         ProxyPassReverse / https://jcr.incites.thomsonreuters.com/
601
602         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
603         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
604
605         Header edit* Location "(https://.*.incites.thomsonreuters.com)/?(.*)" "$1.p.vbz.ffzg.hr/$2"
606
607
608         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
609 </VirtualHost>
610 <VirtualHost *:443>
611         Include /srv/via-proxy/ssl.conf
612
613         ServerName login.incites.thomsonreuters.com.p.vbz.ffzg.hr
614
615         SSLProxyEngine on
616         ProxyAddHeaders Off
617         ProxyPass        / https://login.incites.thomsonreuters.com/
618         ProxyPassReverse / https://login.incites.thomsonreuters.com/
619
620         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
621         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
622
623         # they really return http Location header even if everything else was
624         # behind https up to that point, AND https works
625         Header edit* Location "https?://(.*.incites.thomsonreuters.com)/?(.*)" "https://$1.p.vbz.ffzg.hr/$2"
626
627         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
628 </VirtualHost>
629
630
631
632
633
634 NameVirtualHost *:443
635
636 <VirtualHost *:443>
637         Include /srv/via-proxy/ssl.conf
638
639         DocumentRoot /srv/via-proxy
640         <Directory /srv/via-proxy/>
641                 Require all granted
642         </Directory>
643         ServerName p.vbz.ffzg.hr
644         ServerAlias *.p.vbz.ffzg.hr
645         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
646
647 </VirtualHost>
648
649 <VirtualHost *:80>
650         DocumentRoot /srv/via-proxy
651         <Directory /srv/via-proxy/>
652                 Require all granted
653         </Directory>
654         ServerName p.vbz.ffzg.hr
655         ServerAlias *.p.vbz.ffzg.hr
656         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
657
658         Redirect / https://p.vbz.ffzg.hr
659
660 </VirtualHost>
661