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