]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/examples/apache/eg_vhost.conf
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[working/Evergreen.git] / Open-ILS / examples / apache / eg_vhost.conf
1 # ----------------------------------------------------------------------------------
2 # This is the global Evergreen virtual host config.  Anything you want published
3 # through all virtual hosts (port 80, port 443, etc.) should live in here.
4 # ----------------------------------------------------------------------------------
5
6 # ----------------------------------------------------------------------------------
7 # Point / to the opac - if you have a custom skin or locale, point at it here
8 # ----------------------------------------------------------------------------------
9 RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml
10
11 # ----------------------------------------------------------------------------------
12 # Point / to the IP address redirector
13 # ----------------------------------------------------------------------------------
14 #<LocationMatch ^/$>
15 #    SetHandler perl-script
16 #    PerlHandler OpenILS::WWW::Redirect
17 #    Options +ExecCGI
18 #    PerlSendHeader On
19 #    #PerlSetVar OILSRedirectSkin "default"
20 #    # OILSRedirectDepth defaults to the depth of the branch that the OPAC was directed to
21 #    #PerlSetVar OILSRedirectDepth "0"
22 #    #PerlSetVar OILSRedirectLocale "en-US"
23 #    allow from all
24 #</LocationMatch>
25
26
27 # ----------------------------------------------------------------------------------
28 # Assign a default locale to the accessible OPAC
29 # ----------------------------------------------------------------------------------
30 RedirectMatch 301 ^/opac/extras/slimpac/start.html$    /opac/en-US/extras/slimpac/start.html
31 RedirectMatch 301 ^/opac/extras/slimpac/advanced.html$ /opac/en-US/extras/slimpac/advanced.html
32
33 # ----------------------------------------------------------------------------------
34 # Configure the gateway
35 # ----------------------------------------------------------------------------------
36 OSRFGatewayConfig /openils/conf/opensrf_core.xml
37 # Translator memcache server.  Default is localhost
38 # OSRFTranslatorCacheServer 127.0.0.1:11211
39
40
41 # ----------------------------------------------------------------------------------
42 # Added content plugin
43 # ----------------------------------------------------------------------------------
44 <Location /opac/extras/ac/>
45     SetHandler perl-script
46     PerlHandler OpenILS::WWW::AddedContent
47     Options +ExecCGI
48     PerlSendHeader On
49     allow from all
50 </Location>
51
52 # ----------------------------------------------------------------------------------
53 # Replace broken cover images with a transparent GIF by default
54 # ----------------------------------------------------------------------------------
55 RewriteEngine ON
56 RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
57     /opac/images/blank.png [P,L]
58
59 # ----------------------------------------------------------------------------------
60 # Add the row ID (RID) and date so we can make unAPI happy
61 # ----------------------------------------------------------------------------------
62 RewriteCond %{QUERY_STRING} (^r|&r)=(\d+)
63 RewriteRule . - [E=OILS_OPAC_RID:%2,E=OILS_TIME_YEAR:%{TIME_YEAR}]
64
65 # ----------------------------------------------------------------------------------
66 # Pull the locale from the URL
67 # ----------------------------------------------------------------------------------
68 RewriteCond %{REQUEST_URI} ^/opac/(.*?)/
69 RewriteRule . - [E=locale:%1]
70
71 # ----------------------------------------------------------------------------------
72 # Configure the OPAC
73 # ----------------------------------------------------------------------------------
74 <LocationMatch /opac/>
75     AddType application/xhtml+xml .xml
76    
77     # - configure mod_xmlent
78     XMLEntStripPI "yes"
79     XMLEntEscapeScript "no"
80     XMLEntStripComments "yes"
81     XMLEntContentType "text/html; charset=utf-8"
82     # forces quirks mode which we want for now
83     XMLEntStripDoctype "yes" 
84
85     # - set up the include handlers
86     Options +Includes
87     AddOutputFilter INCLUDES .xsl
88     AddOutputFilter INCLUDES;XMLENT .xml
89                     
90     SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
91     
92     # This gives you the option to configure a different host to serve OPAC images from
93     # Specify the hostname (without protocol) and path to the images.  Protocol will
94     # be determined at runtime
95     #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
96
97     # In addition to loading images from a static host, you can also load CSS and/or
98     # Javascript from a static host or hosts. Protocol will be determined at runtime
99     # and/or by configuration options immediately following.
100     #SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
101     #SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
102
103     # If you are not able to serve static content via https and 
104     # wish to force http:// (and are comfortable with mixed-content
105     # warnings in client browsers), set this:
106     #SetEnvIf Request_URI ".*" OILS_OPAC_STATIC_PROTOCOL=http
107
108     # If you would prefer to fall back to your non-static servers for 
109     # https pages, avoiding mixed-content warnings in client browsers
110     # and are willing to accept some increased server load, set this:
111     #SetEnvIf Request_URI ".*" OILS_OPAC_BYPASS_STATIC_FOR_HTTPS=yes
112
113     # Specify a ChiliFresh account to integrate their services with the OPAC
114     #SetEnv OILS_CHILIFRESH_ACCOUNT
115     #SetEnv OILS_CHILIFRESH_PROFILE
116     #SetEnv OILS_CHILIFRESH_URL http://chilifresh.com/on-site/js/evergreen.js
117
118     # Specify the initial script URL for Novelist (containing account credentials, etc.)
119     #SetEnv OILS_NOVELIST_URL
120     
121
122     # Uncomment to force SSL any time a patron is logged in.  This protects 
123     # authentication tokens.  Left commented out for backwards compat for now.
124     #SetEnv OILS_OPAC_FORCE_LOGIN_SSL 1
125
126
127     # If set, the skin uses the combined JS file at $SKINDIR/js/combined.js
128     #SetEnv OILS_OPAC_COMBINED_JS 1
129
130 </LocationMatch>
131
132 <Location /opac/>
133     # ----------------------------------------------------------------------------------
134     # Some mod_deflate fun
135     # ----------------------------------------------------------------------------------
136     <IfModule mod_deflate.c>
137         SetOutputFilter DEFLATE
138
139         BrowserMatch ^Mozilla/4 gzip-only-text/html
140         BrowserMatch ^Mozilla/4\.0[678] no-gzip
141         BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
142
143         SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
144
145         <IfModule mod_headers.c>
146             Header append Vary User-Agent env=!dont-vary
147         </IfModule>
148     </IfModule>
149
150 </Location>
151
152 <Location //opac/>
153     # ----------------------------------------------------------------------------------
154     # Some mod_deflate fun
155     # ----------------------------------------------------------------------------------
156     <IfModule mod_deflate.c>
157         SetOutputFilter DEFLATE
158
159         BrowserMatch ^Mozilla/4 gzip-only-text/html
160         BrowserMatch ^Mozilla/4\.0[678] no-gzip
161         BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
162
163         SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
164
165         <IfModule mod_headers.c>
166             Header append Vary User-Agent env=!dont-vary
167         </IfModule>
168     </IfModule>
169
170 </Location>
171
172 # ----------------------------------------------------------------------------------
173 # Force SSL on the OPAC's "My Account" page
174 # ----------------------------------------------------------------------------------
175 <LocationMatch .*/myopac.xml>
176     SSLRequireSSL
177 </LocationMatch>
178
179 <LocationMatch /opac/extras/>
180     # Force to en-US for now to satisfy bbags.xml
181     SetEnv locale en-US
182     Options +Includes
183     AddOutputFilter INCLUDES .xml
184     AddType application/xhtml+xml .xml
185 </LocationMatch>
186
187 RewriteCond %{QUERY_STRING} locale=([^&]*)
188 RewriteRule ^/opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/(.*)$ /opac/%1/extras/slimpac/$1? [redirect]
189 <LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/>
190     AddOutputFilter INCLUDES;XMLENT .html
191 </LocationMatch>
192
193 # ----------------------------------------------------------------------------------
194 # Run server-side XUL and XHTML through xmlent to load the correct XML entities
195 # ----------------------------------------------------------------------------------
196 RewriteCond %{HTTP:Accept-Language} ([a-z]{2}-[A-Z]{2})
197 RewriteRule ^/xul/      -       [E=locale:%1]
198 RewriteRule ^/reports/  -       [E=locale:%1]
199
200 # Default to en-US if we haven't matched a locale of the form xx-YY 
201 RewriteCond %{HTTP:Accept-Language} !([a-z]{2}-[A-Z]{2})
202 RewriteRule ^/xul/      -       [E=locale:en-US]
203 RewriteRule ^/reports/  -       [E=locale:en-US]
204
205 # Default to en-US if we are just given en
206 RewriteCond %{ENV:locale} ^$ [OR]
207 RewriteCond %{ENV:locale} ^en$
208 RewriteRule . - [E=locale:en-US]
209
210 <LocationMatch /xul/.*\.x?html$>
211     Options +Includes
212     XMLEntEscapeScript "no"
213     XMLEntStripComments "yes"
214     XMLEntStripPI "yes"
215     XMLEntStripDoctype "yes"
216     XMLEntContentType "text/html; charset=utf-8"
217     AddOutputFilter INCLUDES;XMLENT .xhtml
218     AddOutputFilter INCLUDES;XMLENT .html
219     allow from all
220 </LocationMatch>
221
222
223 <LocationMatch /xul/.*\.xul$>
224     Options +Includes
225     XMLEntContentType "application/vnd.mozilla.xul+xml"
226     AddOutputFilter INCLUDES;XMLENT .xul
227     allow from all
228 </LocationMatch>
229
230 # ----------------------------------------------------------------------------------
231 # Self-serve password interface
232 # ----------------------------------------------------------------------------------
233 <Location /opac/password>
234     SetHandler perl-script
235     PerlHandler OpenILS::WWW::PasswordReset::password_reset
236     Options +ExecCGI
237     PerlSendHeader On
238     allow from all
239
240     # Force clients to use HTTPS
241     RewriteCond %{HTTPS} !=on [NC]
242     RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
243 </Location>
244
245 # ----------------------------------------------------------------------------------
246 # Supercat feeds
247 # ----------------------------------------------------------------------------------
248 <Location /opac/extras/oisbn>
249     SetHandler perl-script
250     PerlHandler OpenILS::WWW::SuperCat::oisbn
251     Options +ExecCGI
252     PerlSendHeader On
253     allow from all
254 </Location>
255 <Location /opac/extras/supercat>
256     SetHandler perl-script
257     PerlHandler OpenILS::WWW::SuperCat::supercat
258     Options +ExecCGI
259     PerlSendHeader On
260     allow from all
261 </Location>
262 <Location /opac/extras/unapi>
263     SetHandler perl-script
264     PerlHandler OpenILS::WWW::SuperCat::unapi
265     Options +ExecCGI
266     PerlSendHeader On
267     allow from all
268 </Location>
269 <Location /opac/extras/feed/bookbag>
270     SetHandler perl-script
271     PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
272     Options +ExecCGI
273     PerlSendHeader On
274     allow from all
275 </Location>
276 <Location /opac/extras/opensearch>
277     SetHandler perl-script
278     PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
279     Options +ExecCGI
280     PerlSendHeader On
281     allow from all
282 </Location>
283 <Location /opac/extras/sru>
284     SetHandler perl-script
285     PerlHandler OpenILS::WWW::SuperCat::sru_search
286     Options +ExecCGI
287     PerlSendHeader On
288     allow from all
289 </Location>
290 <Location /opac/extras/sru_auth>
291     SetHandler perl-script
292     PerlHandler OpenILS::WWW::SuperCat::sru_auth_search
293     Options +ExecCGI
294     PerlSendHeader On
295     allow from all
296 </Location>
297 <Location /opac/extras/feed/freshmeat>
298     SetHandler perl-script
299     PerlHandler OpenILS::WWW::SuperCat::changes_feed
300     Options +ExecCGI
301     PerlSendHeader On
302     allow from all
303 </Location>
304 <Location /opac/extras/browse>
305     SetHandler perl-script
306     PerlHandler OpenILS::WWW::SuperCat::string_browse
307     Options +ExecCGI
308     PerlSendHeader On
309     allow from all
310 </Location>     
311 <Location /opac/extras/startwith>
312     SetHandler perl-script
313     PerlHandler OpenILS::WWW::SuperCat::string_startwith
314     Options +ExecCGI
315     PerlSendHeader On
316     allow from all
317 </Location>     
318         
319 # ----------------------------------------------------------------------------------
320 # Module for displaying OpenSRF API documentation
321 # ----------------------------------------------------------------------------------
322 <Location /opac/extras/docgen.xsl>
323     AddOutputFilter INCLUDES .xsl
324 </Location>
325
326 # ----------------------------------------------------------------------------------
327 # Module for processing staff-client offline scripts lives here
328 # ----------------------------------------------------------------------------------
329 <Directory "/openils/var/cgi-bin/offline">
330     AddHandler cgi-script .pl
331     AllowOverride None
332     Options +ExecCGI
333     allow from all
334 </Directory>
335         
336         
337 # ----------------------------------------------------------------------------------
338 # XXX Note, it's important to explicitly set the JSON encoding style 
339 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change 
340 # with OpenSRF 1.0
341 # ----------------------------------------------------------------------------------
342 # OpenSRF JSON legacy gateway
343 # ----------------------------------------------------------------------------------
344 <Location /gateway>
345     SetHandler osrf_json_gateway_module
346     OSRFGatewayLegacyJSON "true"
347     allow from all
348 </Location>
349 # ----------------------------------------------------------------------------------
350 # New-style OpenSRF JSON gateway
351 # ----------------------------------------------------------------------------------
352 <Location /osrf-gateway-v1>
353     SetHandler osrf_json_gateway_module
354     OSRFGatewayLegacyJSON "false"
355     allow from all
356 </Location>
357
358 # ----------------------------------------------------------------------------------
359 # OpenSRF-over-HTTP translator
360 # (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
361 # ----------------------------------------------------------------------------------
362 <Location /osrf-http-translator>
363     SetHandler osrf_http_translator_module
364     allow from all
365 </Location>
366
367 # ----------------------------------------------------------------------------------
368 # The exporter lives here
369 # ----------------------------------------------------------------------------------
370 <Location /exporter>
371     SetHandler perl-script
372     PerlSetVar OILSProxyTitle "Exporter Login"
373     PerlSetVar OILSProxyDescription "Please log in with an authorized staff account to export records"
374     PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
375     PerlHandler OpenILS::WWW::Proxy OpenILS::WWW::Exporter
376     Options +ExecCGI
377     PerlSendHeader On
378     allow from all
379 </Location>
380
381 <Location /opac/extras/merge_template>
382     SetHandler perl-script
383     PerlSetVar OILSProxyTitle "Batch Update Login"
384     PerlSetVar OILSProxyDescription "Please log in to update records in batch"
385     PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
386     PerlHandler OpenILS::WWW::Proxy OpenILS::WWW::TemplateBatchBibUpdate
387     PerlSendHeader On
388     Options +ExecCGI
389     allow from all
390 </Location>
391
392 <Location /opac/extras/circ>
393     SetHandler perl-script
394     PerlSetVar OILSProxyTitle "Circ Extras Login"
395     PerlSetVar OILSProxyDescription "Please log in with an authorized staff account to export records"
396     PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
397     PerlHandler OpenILS::WWW::Proxy
398     Options +ExecCGI
399     PerlSendHeader On
400     allow from all
401 </Location>
402
403 # ----------------------------------------------------------------------------------
404 # Reporting output lives here
405 # ----------------------------------------------------------------------------------
406 <Location /reporter/>
407     SetHandler perl-script
408     PerlSetVar OILSProxyTitle "Report Login"
409     PerlSetVar OILSProxyDescription "Please log in with an authorized staff account to view this report"
410     PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
411     PerlHandler OpenILS::WWW::Proxy
412     Options +ExecCGI
413     PerlSendHeader On
414     allow from all
415 </Location>
416
417 # ----------------------------------------------------------------------------------
418 # Selfcheck interface
419 # ----------------------------------------------------------------------------------
420 <LocationMatch .*/selfcheck.xml>
421     SetHandler perl-script
422     PerlSetVar OILSProxyTitle "Self-check Login"
423     PerlSetVar OILSProxyDescription "Please log in with an authorized staff account to activate the self-check interface"
424     PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
425     PerlHandler OpenILS::WWW::Proxy
426     Options +ExecCGI
427     PerlSendHeader On
428     allow from all
429 </LocationMatch>
430
431
432 # ----------------------------------------------------------------------------------
433 # Reports GUI
434 # ----------------------------------------------------------------------------------
435 <LocationMatch /reports>
436     Options +Includes
437     AddOutputFilter INCLUDES;XMLENT .xhtml
438 </LocationMatch>
439
440 <LocationMatch /reports/fm_IDL.xml>
441     IDLChunkStripPI "yes"
442     IDLChunkEscapeScript "no"
443     IDLChunkStripComments "yes"
444     IDLChunkStripDoctype "yes"
445     IDLChunkContentType "application/xml; charset=utf-8"
446     AddOutputFilter INCLUDES;IDLCHUNK .xml
447 </LocationMatch>
448
449 # ----------------------------------------------------------------------------------
450 # EDI Message viewer
451 # ----------------------------------------------------------------------------------
452 <Location /edi>
453     SetHandler perl-script
454     PerlHandler OpenILS::WWW::EDI
455     Options +ExecCGI
456     PerlSendHeader On
457     allow from all
458 </Location>     
459
460 # ----------------------------------------------------------------------------------
461 # XML-RPC gateway
462 # ----------------------------------------------------------------------------------
463 <Location /xml-rpc>
464     SetHandler perl-script
465     PerlHandler OpenILS::WWW::XMLRPCGateway
466     Options +ExecCGI
467     PerlSendHeader On
468     allow from all
469 </Location>
470
471 # ----------------------------------------------------------------------------------
472 # Conify - next-generation Evergreen administration interface
473 # ----------------------------------------------------------------------------------
474 RewriteRule ^/conify/([a-z]{2}-[A-Z]{2})/global/(.*)$ /conify/global/$2 [E=locale:$1,L]
475 <Location /conify>
476     Options +Includes
477     XMLEntStripPI "yes"
478     XMLEntEscapeScript "no"
479     XMLEntStripComments "no"
480     XMLEntContentType "text/html; charset=utf-8"
481     AddOutputFilter INCLUDES;XMLENT .html
482  
483     SetHandler perl-script
484     PerlSetVar OILSProxyTitle "Dojo Admin Login"
485     PerlSetVar OILSProxyDescription "Please log in with an authorized staff account to administer Evergreen"
486     PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
487     PerlHandler OpenILS::WWW::Proxy
488     Options +ExecCGI
489     PerlSendHeader On
490     allow from all
491 </Location>
492
493 # ----------------------------------------------------------------------------------
494 # Vandelay importers / exporters (your Web interface to bibliographic travel)
495 # ----------------------------------------------------------------------------------
496 RedirectMatch 301 ^/vandelay/vandelay.xml(.*)$ /vandelay/en-US/vandelay.xml$1
497
498 RewriteRule ^/vandelay/([a-z]{2}-[A-Z]{2})/(.*)$ /vandelay/$2 [E=locale:$1]
499
500 <LocationMatch /vandelay.*xml>
501     XMLEntStripPI "yes"
502     XMLEntEscapeScript "no"
503     XMLEntStripComments "yes"
504     XMLEntContentType "text/html; charset=utf-8"
505     XMLEntStripDoctype "yes"
506     AddOutputFilter INCLUDES;XMLENT .xml
507         SetHandler perl-script
508         PerlSetVar OILSProxyTitle "Vandelay Login"
509         PerlSetVar OILSProxyDescription "Please log in with an authorized staff account to import MARC records"
510         PerlSetVar OILSProxyPermissions "IMPORT_MARC"
511         PerlHandler OpenILS::WWW::Proxy
512         Options +ExecCGI
513         PerlSendHeader On
514         allow from all
515 </LocationMatch>
516 <Location /vandelay-upload>
517     SetHandler perl-script
518     PerlHandler OpenILS::WWW::Vandelay::spool_marc
519     Options +ExecCGI
520     allow from all
521 </Location>
522
523 # OpenURL 0.1 searching based on OpenSearch
524 RewriteMap openurl prg:/openils/bin/openurl_map.pl
525 RewriteCond %{QUERY_STRING} (^.*$)
526 RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]
527
528
529
530 # General Evergreen web template processor
531 <Location /eg>
532     SetHandler perl-script
533     PerlHandler OpenILS::WWW::EGWeb
534     Options +ExecCGI
535     PerlSendHeader On
536     allow from all
537     <IfModule mod_deflate.c>
538         SetOutputFilter DEFLATE
539         BrowserMatch ^Mozilla/4 gzip-only-text/html
540         BrowserMatch ^Mozilla/4\.0[678] no-gzip
541         BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
542         SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
543         <IfModule mod_headers.c>
544             Header append Cache-Control "public"
545             Header append Vary User-Agent env=!dont-vary
546         </IfModule>
547     </IfModule>
548 </Location>
549 <LocationMatch ^/(images|css|js)/>
550     # should pick up the default expire time from eg.conf...
551     <IfModule mod_deflate.c>
552         SetOutputFilter DEFLATE
553         BrowserMatch ^Mozilla/4 gzip-only-text/html
554         BrowserMatch ^Mozilla/4\.0[678] no-gzip
555         BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
556         SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
557         <IfModule mod_headers.c>
558             Header append Cache-Control "public"
559             Header append Vary User-Agent env=!dont-vary
560         </IfModule>
561     </IfModule>
562 </LocationMatch>
563 <Location /eg/opac>
564     PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGCatLoader"
565     # Expire the HTML quickly since we're loading dynamic data for each page
566     ExpiresActive On
567     ExpiresByType text/html "access plus 5 seconds"
568 </Location>
569
570
571 # Note: the template processor will decline handling anything it does not
572 # have an explicit configuration for, which means it will fall back to 
573 # Apache to serve the file.  However, in the interest of speed, go ahead 
574 # and tell Apache to avoid asking OpenILS::WWW::EGWeb for static content.
575 # Add more exemptions as needed.
576 <LocationMatch ^/eg/.*(\.js|\.css|\.html|\.xhtml|\.xml|\.jpg|\.png|\.gif)$>
577     SetHandler None
578 </LocationMatch>
579
580 # ----------------------------------------------------------------------------------
581 # Some mod_deflate logging setup
582 # ----------------------------------------------------------------------------------
583 <IfModule mod_deflate.c>
584     DeflateFilterNote Input instream
585     DeflateFilterNote Output outstream
586     DeflateFilterNote Ratio ratio
587
588     LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
589     CustomLog /var/log/apache2/deflate_log deflate
590 </IfModule>
591
592
593 <Location /IDL2js>
594
595     SetHandler perl-script
596     PerlHandler OpenILS::WWW::IDL2js
597     Options +ExecCGI
598     PerlSendHeader On
599     allow from all
600
601     <IfModule mod_headers.c>
602         Header append Cache-Control "public"
603     </IFModule>
604
605     <IfModule mod_deflate.c>
606         SetOutputFilter DEFLATE
607         BrowserMatch ^Mozilla/4 gzip-only-text/html
608         BrowserMatch ^Mozilla/4\.0[678] no-gzip
609         BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
610         SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
611         <IfModule mod_headers.c>
612             Header append Vary User-Agent env=!dont-vary
613         </IfModule>
614     </IfModule>
615 </Location>