switch proxied sites to https using let's encrypt
[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        / http://onlinelibrary.wiley.com/
137         ProxyPassReverse / http://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        / http://pubs.rsc.org/
165         ProxyPassReverse / http://pubs.rsc.org/
166
167         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
168         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
169
170         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
171 </VirtualHost>
172
173
174 <VirtualHost *:443>
175         Include /srv/via-proxy/ssl.conf
176
177         ServerName www.brepolis.net.p.vbz.ffzg.hr
178
179         ProxyPass        / http://www.brepolis.net/
180         ProxyPassReverse / http://www.brepolis.net/
181
182         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
183         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
184
185         RequestHeader unset Accept-Encoding
186
187 Substitute "s|http://apps.brepolis.net/|http://apps.brepolis.net.p.vbz.ffzg.hr/|n"
188 FilterDeclare NEWPATHS2
189 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
190 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
191 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
192 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
193 FilterChain NEWPATHS2
194
195         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
196 </VirtualHost>
197 <VirtualHost *:443>
198         Include /srv/via-proxy/ssl.conf
199
200         ServerName apps.brepolis.net.p.vbz.ffzg.hr
201
202         ProxyPass        / http://apps.brepolis.net/
203         ProxyPassReverse / http://apps.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/|http://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         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
218 </VirtualHost>
219
220
221 <VirtualHost *:443>
222         Include /srv/via-proxy/ssl.conf
223
224         ServerName www.cairn.info.p.vbz.ffzg.hr
225
226         SSLProxyEngine on
227         ProxyPass        / https://www.cairn.info/
228         ProxyPassReverse / https://www.cairn.info/
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         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
234 </VirtualHost>
235
236
237 <VirtualHost *:443>
238         Include /srv/via-proxy/ssl.conf
239
240         ServerName www.degruyter.com.p.vbz.ffzg.hr
241
242         SSLProxyEngine on
243         ProxyPass        / https://www.degruyter.com/
244         ProxyPassReverse / https://www.degruyter.com/
245
246         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
247         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
248
249         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
250 </VirtualHost>
251
252
253 <VirtualHost *:443>
254         Include /srv/via-proxy/ssl.conf
255
256         ServerName www.emeraldinsight.com.p.vbz.ffzg.hr
257
258         SSLProxyEngine on
259         ProxyPass        / https://www.emeraldinsight.com/
260         ProxyPassReverse / https://www.emeraldinsight.com/
261
262         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
263         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
264
265         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
266 </VirtualHost>
267
268 <VirtualHost *:443>
269         Include /srv/via-proxy/ssl.conf
270
271         ServerName www.webofknowledge.com.p.vbz.ffzg.hr
272
273         SSLProxyEngine on
274         ProxyPass        / https://www.webofknowledge.com/
275         ProxyPassReverse / https://www.webofknowledge.com/
276
277         Header edit* Location "(https://apps.webofknowledge.com)/(.*)" "http://apps.webofknowledge.com.p.vbz.ffzg.hr/$2"
278
279         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
280         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
281
282 RequestHeader unset Accept-Encoding
283 Substitute "s|https://apps.webofknowledge.com/|http://apps.webofknowledge.com.p.vbz.ffzg.hr/|n"
284 FilterDeclare NEWPATHS2
285 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
286 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
287 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
288 FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
289 FilterChain NEWPATHS2
290         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
291 </VirtualHost>
292 <VirtualHost *:443>
293         Include /srv/via-proxy/ssl.conf
294
295         ServerName apps.webofknowledge.com.p.vbz.ffzg.hr
296
297         SSLProxyEngine on
298         ProxyPass        / https://apps.webofknowledge.com/
299         ProxyPassReverse / https://apps.webofknowledge.com/
300
301         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
302         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
303
304         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
305 </VirtualHost>
306
307
308 <VirtualHost *:443>
309         Include /srv/via-proxy/ssl.conf
310
311         ServerName www.jstor.org.p.vbz.ffzg.hr
312
313         #SSLProxyEngine on
314         # download pdf doesn't work if we use https://www.jstor.org !
315         ProxyPass        / http://www.jstor.org/
316         ProxyPassReverse / http://www.jstor.org/
317
318         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
319         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
320
321 #       Header edit* Referer "http://(.*)(?i:\.p\.vbz\.ffzg\.hr)" "https://$1$2"
322
323         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
324
325         #Header add Access-Control-Allow-Origin ''
326         #Header add Access-Control-Allow-Headers "X-Requested-With, Content-Type"
327
328         #Header always set Access-Control-Allow-Origin "*"
329         #Header always set Access-Control-Max-Age "1000"
330         #Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
331
332
333         # OCLC has special case for this header
334 #       SetEnvIf X-Requested-With (.*) saved_x_requested_with=$1
335 #       RequestHeader set X-Requested-With "%{saved_x_requested_with}e"
336
337         #ForensicLog /var/log/apache2/forensic.log
338
339 #RequestHeader unset Accept-Encoding
340 #Substitute "s|http://www.jsor.org/|http://www.jstor.org.p.vbz.ffzg.hr/|n"
341 #FilterDeclare NEWPATHS2
342 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
343 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
344 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
345 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
346 #FilterChain NEWPATHS2
347
348 </VirtualHost>
349
350 <VirtualHost *:443>
351         Include /srv/via-proxy/ssl.conf
352
353         ServerName www.nature.com.p.vbz.ffzg.hr
354
355         SSLProxyEngine on
356         ProxyPass        / https://www.nature.com/
357         ProxyPassReverse / https://www.nature.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         Header edit* Location "https://([^/]*)/" "http://$1.p.vbz.ffzg.hr/"
363
364 #RequestHeader unset Accept-Encoding
365 #Substitute "s|https://idp.nature.com/|http://idp.nature.com.p.vbz.ffzg.hr/|n"
366 #FilterDeclare NEWPATHS2
367 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/html|"
368 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/css|"
369 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^text/javascript|"
370 #FilterProvider NEWPATHS2 SUBSTITUTE "%{Content_Type} =~ m|^application/javascript|"
371 #FilterChain NEWPATHS2
372         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
373 </VirtualHost>
374 <VirtualHost *:443>
375         Include /srv/via-proxy/ssl.conf
376
377         ServerName idp.nature.com.p.vbz.ffzg.hr
378
379         SSLProxyEngine on
380         ProxyPass        / https://idp.nature.com/
381         ProxyPassReverse / https://idp.nature.com/
382
383         Header edit* Location "https://([^/]*)/" "http://$1.p.vbz.ffzg.hr/"
384         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;][^;]+);" "$1 ; domain=$2.p.vbz.ffzg.hr;"
385         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
386
387         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
388 </VirtualHost>
389
390
391 <VirtualHost *:443>
392         Include /srv/via-proxy/ssl.conf
393
394         ServerName www.palgrave.com.p.vbz.ffzg.hr
395
396         SSLProxyEngine on
397         ProxyPass        / https://www.palgrave.com/
398         ProxyPassReverse / https://www.palgrave.com/
399
400         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
401         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
402
403         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
404 </VirtualHost>
405
406 <VirtualHost *:443>
407         Include /srv/via-proxy/ssl.conf
408
409         ServerName link.springer.com.p.vbz.ffzg.hr
410
411         SSLProxyEngine on
412         ProxyPass        / https://link.springer.com/
413         ProxyPassReverse / https://link.springer.com/
414
415         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
416         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
417
418         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
419 </VirtualHost>
420
421 <VirtualHost *:443>
422         Include /srv/via-proxy/ssl.conf
423
424         ServerName www.tandfonline.com.p.vbz.ffzg.hr
425
426         SSLProxyEngine on
427         ProxyPass        / https://www.tandfonline.com/
428         ProxyPassReverse / https://www.tandfonline.com/
429
430         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
431         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
432
433         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
434 </VirtualHost>
435
436 <VirtualHost *:443>
437         Include /srv/via-proxy/ssl.conf
438
439         ServerName www.sciencedirect.com.p.vbz.ffzg.hr
440
441         SSLProxyEngine on
442         ProxyPass        / https://www.sciencedirect.com/
443         ProxyPassReverse / https://www.sciencedirect.com/
444
445         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
446         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
447
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 www.scopus.com.p.vbz.ffzg.hr
456
457         SSLProxyEngine on
458         ProxyPass        / https://www.scopus.com/
459         ProxyPassReverse / https://www.scopus.com/
460
461         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
462         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
463
464         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
465 </VirtualHost>
466
467 <VirtualHost *:443>
468         Include /srv/via-proxy/ssl.conf
469
470         ServerName journals.bmj.com.p.vbz.ffzg.hr
471
472         #SSLProxyEngine on
473         ProxyPass        / http://journals.bmj.com/
474         ProxyPassReverse / http://journals.bmj.com/
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         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
480 </VirtualHost>
481
482 <VirtualHost *:443>
483         Include /srv/via-proxy/ssl.conf
484
485         ServerName journals.bmj.com.p.vbz.ffzg.hr
486
487         #SSLProxyEngine on
488         ProxyPass        / http://journals.bmj.com/
489         ProxyPassReverse / http://journals.bmj.com/
490
491         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
492         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
493
494         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
495 </VirtualHost>
496
497 <VirtualHost *:443>
498         Include /srv/via-proxy/ssl.conf
499
500         ServerName ieeexplore.ieee.org.p.vbz.ffzg.hr
501
502         # IEEE Xplore is transitioning to HTTPS on 9 April 2018.
503         #SSLProxyEngine on
504         ProxyPass        / http://ieeexplore.ieee.org/
505         ProxyPassReverse / http://ieeexplore.ieee.org/
506
507         Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
508         Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
509
510         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
511 </VirtualHost>
512
513 NameVirtualHost *:443
514
515 <VirtualHost *:443>
516         Include /srv/via-proxy/ssl.conf
517
518         DocumentRoot /srv/via-proxy
519         <Directory /srv/via-proxy/>
520                 Require all granted
521         </Directory>
522         ServerName p.vbz.ffzg.hr
523         ServerAlias *.p.vbz.ffzg.hr
524         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
525
526 </VirtualHost>
527
528 <VirtualHost *:80>
529         DocumentRoot /srv/via-proxy
530         <Directory /srv/via-proxy/>
531                 Require all granted
532         </Directory>
533         ServerName p.vbz.ffzg.hr
534         ServerAlias *.p.vbz.ffzg.hr
535         CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
536
537         Redirect / https://p.vbz.ffzg.hr
538
539 </VirtualHost>
540