somewhat working bmj, but still broken
[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         ProxyPass / https://search.proquest.com/
64         ProxyPassReverse / https://search.proquest.com/
65
66         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
67         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
68
69 RequestHeader unset Accept-Encoding
70 Substitute "s|https://search.proquest.com/|/|n"
71 FilterDeclare NEWPATHS2
72 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
73 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
74 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
75 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
76 FilterChain NEWPATHS2
77
78         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
79 </VirtualHost>
80
81 <VirtualHost *:443>
82         Include /srv/via-proxy/ssl.conf
83
84         ServerName academic.oup.com.p.vbz.ffzg.hr
85         SSLProxyEngine on
86         ProxyPass        / https://academic.oup.com/
87         ProxyPassReverse / https://academic.oup.com/
88
89         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
90         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
91
92         RequestHeader unset Accept-Encoding
93
94 Substitute "s|https://academic.oup.com/|/|n"
95 FilterDeclare NEWPATHS2
96 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
97 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
98 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
99 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
100 FilterChain NEWPATHS2
101
102         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
103 </VirtualHost>
104
105 # https://www.oclc.org/support/services/ezproxy/documentation/db/ovid.en.html
106 <VirtualHost *:443>
107         Include /srv/via-proxy/ssl.conf
108
109         ServerName ovidsp.tx.ovid.com.p.vbz.ffzg.hr
110         SSLProxyEngine on
111         ProxyPass        / https://ovidsp.tx.ovid.com/
112         ProxyPassReverse / https://ovidsp.tx.ovid.com/
113
114         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
115         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
116
117         RequestHeader unset Accept-Encoding
118
119 Substitute "s|https://ovidsp.tx.ovid.com/|/|n"
120 FilterDeclare NEWPATHS2
121 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
122 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
123 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
124 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
125 FilterChain NEWPATHS2
126
127         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
128 </VirtualHost>
129
130 <VirtualHost *:443>
131         Include /srv/via-proxy/ssl.conf
132
133         ServerName onlinelibrary.wiley.com.p.vbz.ffzg.hr
134         SSLProxyEngine on
135
136         ProxyPass        / https://onlinelibrary.wiley.com/
137         ProxyPassReverse / https://onlinelibrary.wiley.com/
138
139         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
140         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
141
142         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
143 </VirtualHost>
144
145 <VirtualHost *:443>
146         Include /srv/via-proxy/ssl.conf
147
148         ServerName journals.sagepub.com.p.vbz.ffzg.hr
149
150         ProxyPass        / http://journals.sagepub.com/
151         ProxyPassReverse / http://journals.sagepub.com/
152
153         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
154         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
155
156         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
157 </VirtualHost>
158
159 <VirtualHost *:443>
160         Include /srv/via-proxy/ssl.conf
161
162         ServerName pubs.rsc.org.p.vbz.ffzg.hr
163
164         ProxyPass        /_rsc-cdn_/ http://www.rsc-cdn.org/
165         ProxyPassReverse /_rsc-cdn_/ http://www.rsc-cdn.org/
166
167         # FIXME -- this doesn't work behind https and include http resources
168         ProxyPass        / http://pubs.rsc.org/
169         ProxyPassReverse / http://pubs.rsc.org/
170
171         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
172         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
173
174         RequestHeader unset Accept-Encoding
175         Substitute "s|http://[a-z-]*.rsc-cdn.org/|https://pubs.rsc.org.p.vbz.ffzg.hr/_rsc-cdn_/|"
176         FilterDeclare NEWPATHS
177         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
178         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
179         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
180         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
181         FilterChain NEWPATHS
182
183         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
184 </VirtualHost>
185
186
187 <VirtualHost *:443>
188         Include /srv/via-proxy/ssl.conf
189
190         ServerName www.brepolis.net.p.vbz.ffzg.hr
191
192         ProxyPass        / http://www.brepolis.net/
193         ProxyPassReverse / http://www.brepolis.net/
194
195         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
196         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
197
198         RequestHeader unset Accept-Encoding
199
200 Substitute "s|http://apps.brepolis.net/|https://apps.brepolis.net.p.vbz.ffzg.hr/|n"
201 FilterDeclare NEWPATHS2
202 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
203 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
204 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
205 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
206 FilterChain NEWPATHS2
207
208         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
209 </VirtualHost>
210 <VirtualHost *:443>
211         Include /srv/via-proxy/ssl.conf
212
213         ServerName apps.brepolis.net.p.vbz.ffzg.hr
214
215         ProxyPass        / http://apps.brepolis.net/
216         ProxyPassReverse / http://apps.brepolis.net/
217
218         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
219         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
220
221         RequestHeader unset Accept-Encoding
222
223 Substitute "s|http://apps.brepolis.net/|https://apps.brepolis.net.p.vbz.ffzg.hr/|n"
224 FilterDeclare NEWPATHS2
225 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
226 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
227 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
228 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
229 FilterChain NEWPATHS2
230         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
231 </VirtualHost>
232
233
234 <VirtualHost *:443>
235         Include /srv/via-proxy/ssl.conf
236
237         ServerName www.cairn.info.p.vbz.ffzg.hr
238
239         SSLProxyEngine on
240         ProxyPass        / https://www.cairn.info/
241         ProxyPassReverse / https://www.cairn.info/
242
243         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
244         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
245
246         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
247 </VirtualHost>
248
249
250 <VirtualHost *:443>
251         Include /srv/via-proxy/ssl.conf
252
253         ServerName www.degruyter.com.p.vbz.ffzg.hr
254
255         SSLProxyEngine on
256         ProxyPass        / https://www.degruyter.com/
257         ProxyPassReverse / https://www.degruyter.com/
258
259         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
260         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
261
262         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
263 </VirtualHost>
264
265
266 <VirtualHost *:443>
267         Include /srv/via-proxy/ssl.conf
268
269         ServerName www.emeraldinsight.com.p.vbz.ffzg.hr
270
271         SSLProxyEngine on
272         ProxyPass        / https://www.emeraldinsight.com/
273         ProxyPassReverse / https://www.emeraldinsight.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 <VirtualHost *:443>
282         Include /srv/via-proxy/ssl.conf
283
284         ServerName www.webofknowledge.com.p.vbz.ffzg.hr
285
286         SSLProxyEngine on
287         ProxyPass        / https://www.webofknowledge.com/
288         ProxyPassReverse / https://www.webofknowledge.com/
289
290         Header edit* Location "(https://apps.webofknowledge.com)/(.*)" "https://apps.webofknowledge.com.p.vbz.ffzg.hr/$2"
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 RequestHeader unset Accept-Encoding
296 Substitute "s|https://apps.webofknowledge.com/|https://apps.webofknowledge.com.p.vbz.ffzg.hr/|n"
297 FilterDeclare NEWPATHS2
298 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
299 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
300 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
301 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
302 FilterChain NEWPATHS2
303         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
304 </VirtualHost>
305 <VirtualHost *:443>
306         Include /srv/via-proxy/ssl.conf
307
308         ServerName apps.webofknowledge.com.p.vbz.ffzg.hr
309
310         SSLProxyEngine on
311         ProxyPass        / https://apps.webofknowledge.com/
312         ProxyPassReverse / https://apps.webofknowledge.com/
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         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
318 </VirtualHost>
319
320
321 <VirtualHost *:443>
322         Include /srv/via-proxy/ssl.conf
323
324         ServerName www.jstor.org.p.vbz.ffzg.hr
325
326         #SSLProxyEngine on
327         # download pdf doesn't work if we use https://www.jstor.org !
328         ProxyPass        / http://www.jstor.org/
329         ProxyPassReverse / http://www.jstor.org/
330
331         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
332         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
333
334 #       Header edit* Referer "http://(.*)(?i:\.p\.vbz\.ffzg\.hr)" "https://$1$2"
335
336         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
337
338         #Header add Access-Control-Allow-Origin ''
339         #Header add Access-Control-Allow-Headers "X-Requested-With, Content-Type"
340
341         #Header always set Access-Control-Allow-Origin "*"
342         #Header always set Access-Control-Max-Age "1000"
343         #Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
344
345
346         # OCLC has special case for this header
347 #       SetEnvIf X-Requested-With (.*) saved_x_requested_with=$1
348 #       RequestHeader set X-Requested-With "%{saved_x_requested_with}e"
349
350         #ForensicLog /var/log/apache2/forensic.log
351
352 #RequestHeader unset Accept-Encoding
353 #Substitute "s|http://www.jsor.org/|http://www.jstor.org.p.vbz.ffzg.hr/|n"
354 #FilterDeclare NEWPATHS2
355 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
356 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
357 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
358 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
359 #FilterChain NEWPATHS2
360
361 </VirtualHost>
362
363 <VirtualHost *:443>
364         Include /srv/via-proxy/ssl.conf
365
366         ServerName www.nature.com.p.vbz.ffzg.hr
367
368         SSLProxyEngine on
369         ProxyPass        / https://www.nature.com/
370         ProxyPassReverse / https://www.nature.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         Header edit* Location "https://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/"
376
377 RequestHeader unset Accept-Encoding
378 Substitute "s|http://www.nature.com/|https://www.nature.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 <VirtualHost *:443>
389         Include /srv/via-proxy/ssl.conf
390
391         ServerName idp.nature.com.p.vbz.ffzg.hr
392
393         SSLProxyEngine on
394         ProxyPass        / https://idp.nature.com/
395         ProxyPassReverse / https://idp.nature.com/
396
397         Header edit* Location "https://([^/]*.nature.com)/" "https://$1.p.vbz.ffzg.hr/"
398         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;][^;]+);" "$1 ; domain=$2.p.vbz.ffzg.hr;"
399         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
400
401         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
402 </VirtualHost>
403
404
405 <VirtualHost *:443>
406         Include /srv/via-proxy/ssl.conf
407
408         ServerName www.palgrave.com.p.vbz.ffzg.hr
409
410         SSLProxyEngine on
411         ProxyPass        / https://www.palgrave.com/
412         ProxyPassReverse / https://www.palgrave.com/
413
414         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
415         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
416
417         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
418 </VirtualHost>
419
420 <VirtualHost *:443>
421         Include /srv/via-proxy/ssl.conf
422
423         ServerName link.springer.com.p.vbz.ffzg.hr
424
425         SSLProxyEngine on
426         ProxyPass        / https://link.springer.com/
427         ProxyPassReverse / https://link.springer.com/
428
429         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
430         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
431
432         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
433 </VirtualHost>
434
435 <VirtualHost *:443>
436         Include /srv/via-proxy/ssl.conf
437
438         ServerName www.tandfonline.com.p.vbz.ffzg.hr
439
440         SSLProxyEngine on
441         ProxyPass        / https://www.tandfonline.com/
442         ProxyPassReverse / https://www.tandfonline.com/
443
444         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
445         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
446
447         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
448 </VirtualHost>
449
450 <VirtualHost *:443>
451         Include /srv/via-proxy/ssl.conf
452
453         ServerName www.sciencedirect.com.p.vbz.ffzg.hr
454
455         SSLProxyEngine on
456         ProxyPass        / https://www.sciencedirect.com/
457         ProxyPassReverse / https://www.sciencedirect.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
463         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
464 </VirtualHost>
465
466 <VirtualHost *:443>
467         Include /srv/via-proxy/ssl.conf
468
469         ServerName www.scopus.com.p.vbz.ffzg.hr
470
471         SSLProxyEngine on
472         ProxyPass        / https://www.scopus.com/
473         ProxyPassReverse / https://www.scopus.com/
474
475         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
476         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
477
478         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
479 </VirtualHost>
480
481 <VirtualHost *:443>
482         Include /srv/via-proxy/ssl.conf
483
484         ServerName journals.bmj.com.p.vbz.ffzg.hr
485
486         RequestHeader unset Accept-Encoding
487         Substitute "s|(http:)?//(\w+)\.bmj\.com/|https://journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$2/_path_/|"
488 #       Substitute "s|//(.*)\.bmj\.com/|//journals.bmj.com.p.vbz.ffzg.hr/_rewrite_/$1/_path_/|"
489         FilterDeclare NEWPATHS
490         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
491         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
492         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
493         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
494         FilterChain NEWPATHS
495
496         # fix all other plain http resources
497         RewriteEngine on
498         RewriteRule     /_rewrite_/(.*)/_path_/(.*)     http://$1.bmj.com/$2 [P,L]
499
500         #SSLProxyEngine on
501         ProxyPass        / http://journals.bmj.com/
502         ProxyPassReverse / http://journals.bmj.com/
503
504         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
505         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
506
507         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
508 </VirtualHost>
509
510 <VirtualHost *:443>
511         Include /srv/via-proxy/ssl.conf
512
513         ServerName journals.bmj.com.p.vbz.ffzg.hr
514
515         #SSLProxyEngine on
516         ProxyPass        / http://journals.bmj.com/
517         ProxyPassReverse / http://journals.bmj.com/
518
519         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
520         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
521
522         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
523 </VirtualHost>
524
525 <VirtualHost *:443>
526         Include /srv/via-proxy/ssl.conf
527
528         ServerName ieeexplore.ieee.org.p.vbz.ffzg.hr
529
530         RequestHeader unset Accept-Encoding
531         Substitute "s|http://staticieeexplore.ieee.org/|https://ieeexplore.ieee.org.p.vbz.ffzg.hr/_static_/|n"
532         FilterDeclare NEWPATHS
533         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
534         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
535         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
536         FilterProvider NEWPATHS SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
537         FilterChain NEWPATHS
538
539         ProxyPass        /_static_/ http://staticieeexplore.ieee.org/
540         ProxyPassReverse /_static_/ http://staticieeexplore.ieee.org/
541
542         # IEEE Xplore is transitioning to HTTPS on 9 April 2018.
543         #SSLProxyEngine on
544         ProxyPass        / http://ieeexplore.ieee.org/
545         ProxyPassReverse / http://ieeexplore.ieee.org/
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         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
551 </VirtualHost>
552
553 NameVirtualHost *:443
554
555 <VirtualHost *:443>
556         Include /srv/via-proxy/ssl.conf
557
558         DocumentRoot /srv/via-proxy
559         <Directory /srv/via-proxy/>
560                 Require all granted
561         </Directory>
562         ServerName p.vbz.ffzg.hr
563         ServerAlias *.p.vbz.ffzg.hr
564         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
565
566 </VirtualHost>
567
568 <VirtualHost *:80>
569         DocumentRoot /srv/via-proxy
570         <Directory /srv/via-proxy/>
571                 Require all granted
572         </Directory>
573         ServerName p.vbz.ffzg.hr
574         ServerAlias *.p.vbz.ffzg.hr
575         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
576
577         Redirect / https://p.vbz.ffzg.hr
578
579 </VirtualHost>
580