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 # ----------------------------------------------------------------------------------
6 # ----------------------------------------------------------------------------------
7 # Point / to the opac - if you have a custom skin or locale, point at it here
8 # ----------------------------------------------------------------------------------
9 RedirectMatch 301 ^/$ /eg/opac/home
11 # ----------------------------------------------------------------------------------
12 # Point / to the IP address redirector
13 # ----------------------------------------------------------------------------------
15 # SetHandler perl-script
16 # PerlHandler OpenILS::WWW::Redirect
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 # # Use the template-toolkit opac
24 # #PerlSetVar OILSRedirectTpac "true"
29 # ----------------------------------------------------------------------------------
30 # Assign a default locale to the accessible OPAC
31 # ----------------------------------------------------------------------------------
32 RedirectMatch 301 ^/opac/extras/slimpac/start.html$ /opac/en-US/extras/slimpac/start.html
33 RedirectMatch 301 ^/opac/extras/slimpac/advanced.html$ /opac/en-US/extras/slimpac/advanced.html
35 # ----------------------------------------------------------------------------------
36 # Configure the gateway and translator
37 # ----------------------------------------------------------------------------------
38 OSRFGatewayConfig @sysconfdir@/opensrf_core.xml
39 OSRFTranslatorConfig @sysconfdir@/opensrf_core.xml
40 # Translator memcache server. Default is localhost
41 # OSRFTranslatorCacheServer 127.0.0.1:11211
44 # ----------------------------------------------------------------------------------
45 # Added content plugin
46 # ----------------------------------------------------------------------------------
47 <Location /opac/extras/ac/>
48 SetHandler perl-script
49 PerlHandler OpenILS::WWW::AddedContent
55 # Autosuggest for searches
56 <Location /opac/extras/autosuggest>
57 SetHandler perl-script
58 PerlHandler OpenILS::WWW::AutoSuggest
64 <Location /opac/extras/flattener>
65 SetHandler perl-script
66 PerlHandler OpenILS::WWW::FlatFielder
71 # ----------------------------------------------------------------------------------
72 # Replace broken cover images with a transparent GIF by default
73 # ----------------------------------------------------------------------------------
75 RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
76 /opac/images/blank.png [P,L]
78 <Location /opac/extras/ac/jacket>
79 ErrorDocument 404 /opac/images/blank.png
82 # Uncomment one or more of these to have a "no image" image other than the blank
85 # Note: There are no default images provided for these, you will need to provide
86 # your own "no image" image(s).
88 #<Location /opac/extras/ac/jacket/small>
89 # ErrorDocument 404 /opac/images/noimage_small.png
92 #<Location /opac/extras/ac/jacket/medium>
93 # ErrorDocument 404 /opac/images/noimage_medium.png
96 #<Location /opac/extras/ac/jacket/large>
97 # ErrorDocument 404 /opac/images/noimage_large.png
100 # ----------------------------------------------------------------------------------
101 # Add the row ID (RID) and date so we can make unAPI happy
102 # ----------------------------------------------------------------------------------
103 RewriteCond %{QUERY_STRING} (^r|&r)=(\d+)
104 RewriteRule . - [E=OILS_OPAC_RID:%2,E=OILS_TIME_YEAR:%{TIME_YEAR}]
106 # ----------------------------------------------------------------------------------
107 # Pull the locale from the URL
108 # ----------------------------------------------------------------------------------
109 RewriteCond %{REQUEST_URI} ^/opac/(.*?)/
110 RewriteRule . - [E=locale:%1]
112 # ----------------------------------------------------------------------------------
113 # Rewrite JSPac->TPac with redirects
114 # ----------------------------------------------------------------------------------
116 # First things first, extract useful data
117 # And we are going to start with a "this is the JSPac" check on each of these:
118 # RewriteCond %{REQUEST_URI} ^/?opac/
120 # Basic (overall) search type, if present
121 # I am cheating and grabbing RT or TP because I dunno the difference between them.
122 RewriteCond %{REQUEST_URI} ^/opac/
123 RewriteCond %{QUERY_STRING} (^|[^0-9a-zA-Z])(rt|tp)=([^;&]*)
124 RewriteRule . - [E=OILS_JSPAC_SEARCH_TYPE:qtype=%3;]
126 # Basic (overall) search term(s), if present - NOTE: Not doing advanced search.
127 RewriteCond %{REQUEST_URI} ^/opac/
128 RewriteCond %{QUERY_STRING} (^|[^0-9a-zA-Z])t=([^;&]*)
129 RewriteRule . - [E=OILS_JSPAC_SEARCH_TERMS:query=%2;]
131 # Search Location, if present
132 RewriteCond %{REQUEST_URI} ^/opac/
133 RewriteCond %{QUERY_STRING} (^|[^0-9a-zA-Z])l=([^;&]*)
134 RewriteRule . - [E=OILS_JSPAC_SEARCH_LOCATION:locg=%2;]
137 RewriteRule /opac/[^/]*/skin/default/xml/myopac.xml /eg/opac/myopac/main?%{ENV:OILS_JSPAC_SEARCH_TYPE}%{ENV:OILS_JSPAC_SEARCH_TERMS}%{ENV:OILS_JSPAC_SEARCH_LOCATION} [NE,R,L]
140 # /opac/en-US/skin/default/xml/rdetail.xml?r=32 -> /eg/opac/record/32
141 RewriteCond %{QUERY_STRING} (^|[^0-9a-zA-Z])r=([^;&]*)
142 RewriteRule /opac/.*/rdetail.xml /eg/opac/record/%2?%{ENV:OILS_JSPAC_SEARCH_TYPE}%{ENV:OILS_JSPAC_SEARCH_TERMS}%{ENV:OILS_JSPAC_SEARCH_LOCATION} [NE,R,L]
145 # /opac/extras/feed/bookbag/html-full/1 -> /eg/opac/results?bookbag=1;page=0;locg=1;depth=0
146 RewriteRule /opac/extras/feed/bookbag/html-full/(\d*) /eg/opac/results?bookbag=$1;%{ENV:OILS_JSPAC_SEARCH_TYPE}%{ENV:OILS_JSPAC_SEARCH_TERMS}%{ENV:OILS_JSPAC_SEARCH_LOCATION} [NE,R,L]
148 # Search Results Pages
149 RewriteRule /opac/[^/]*/skin/[^/]*/xml/rresult.xml /eg/opac/results?%{ENV:OILS_JSPAC_SEARCH_TYPE}%{ENV:OILS_JSPAC_SEARCH_TERMS}%{ENV:OILS_JSPAC_SEARCH_LOCATION} [NE,R,L]
151 # Basic Search (STILL not doing advanced)
152 # Fallback! But only for things that end in xml, htm, or html
153 # Images, CSS, etc can stick around.
154 RewriteRule /opac/[^/]*/skin/.*(xml|htm|html|/)$ /eg/opac/home?%{ENV:OILS_JSPAC_SEARCH_TYPE}%{ENV:OILS_JSPAC_SEARCH_TERMS}%{ENV:OILS_JSPAC_SEARCH_LOCATION} [NE,R,L]
156 # -----------------------------------------------------------------------------$
157 # Force HTTPS for /eg/circ/selfcheck
158 # -----------------------------------------------------------------------------$
159 RewriteCond %{HTTPS} off
160 RewriteRule ^(/eg/circ/selfcheck) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
162 # ----------------------------------------------------------------------------------
163 # For sanity reasons, default indexes to Off
164 # ----------------------------------------------------------------------------------
167 # ----------------------------------------------------------------------------------
169 # ----------------------------------------------------------------------------------
170 <LocationMatch /opac/>
171 SSILegacyExprParser on
172 AddType application/xhtml+xml .xml
174 # - configure mod_xmlent
176 XMLEntEscapeScript "no"
177 XMLEntStripComments "yes"
178 XMLEntContentType "text/html; charset=utf-8"
179 # forces quirks mode which we want for now
180 XMLEntStripDoctype "yes"
182 # - set up the include handlers
184 AddOutputFilter INCLUDES .xsl
185 AddOutputFilter INCLUDES;XMLENT .xml
187 SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
189 # This gives you the option to configure a different host to serve OPAC images from
190 # Specify the hostname (without protocol) and path to the images. Protocol will
191 # be determined at runtime
192 #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
194 # In addition to loading images from a static host, you can also load CSS and/or
195 # Javascript from a static host or hosts. Protocol will be determined at runtime
196 # and/or by configuration options immediately following.
197 #SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
198 #SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
200 # If you are not able to serve static content via https and
201 # wish to force http:// (and are comfortable with mixed-content
202 # warnings in client browsers), set this:
203 #SetEnvIf Request_URI ".*" OILS_OPAC_STATIC_PROTOCOL=http
205 # If you would prefer to fall back to your non-static servers for
206 # https pages, avoiding mixed-content warnings in client browsers
207 # and are willing to accept some increased server load, set this:
208 #SetEnvIf Request_URI ".*" OILS_OPAC_BYPASS_STATIC_FOR_HTTPS=yes
210 # Specify a ChiliFresh account to integrate their services with the OPAC
211 #SetEnv OILS_CHILIFRESH_ACCOUNT
212 #SetEnv OILS_CHILIFRESH_PROFILE
213 #SetEnv OILS_CHILIFRESH_URL http://chilifresh.com/on-site/js/evergreen.js
214 #SetEnv OILS_CHILIFRESH_HTTPS_URL https://secure.chilifresh.com/on-site/js/evergreen.js
216 # Specify the initial script URL for Novelist (containing account credentials, etc.)
217 #SetEnv OILS_NOVELIST_URL
220 # Uncomment to force SSL any time a patron is logged in. This protects
221 # authentication tokens. Left commented out for backwards compat for now.
222 #SetEnv OILS_OPAC_FORCE_LOGIN_SSL 1
224 # If set, the skin uses the combined JS file at $SKINDIR/js/combined.js
225 #SetEnv OILS_OPAC_COMBINED_JS 1
230 # ----------------------------------------------------------------------------------
231 # Some mod_deflate fun
232 # ----------------------------------------------------------------------------------
233 <IfModule mod_deflate.c>
234 SetOutputFilter DEFLATE
236 BrowserMatch ^Mozilla/4 gzip-only-text/html
237 BrowserMatch ^Mozilla/4\.0[678] no-gzip
238 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
240 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
242 <IfModule mod_headers.c>
243 Header append Vary User-Agent env=!dont-vary
250 # ----------------------------------------------------------------------------------
251 # Some mod_deflate fun
252 # ----------------------------------------------------------------------------------
253 <IfModule mod_deflate.c>
254 SetOutputFilter DEFLATE
256 BrowserMatch ^Mozilla/4 gzip-only-text/html
257 BrowserMatch ^Mozilla/4\.0[678] no-gzip
258 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
260 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
262 <IfModule mod_headers.c>
263 Header append Vary User-Agent env=!dont-vary
269 # ----------------------------------------------------------------------------------
270 # Force SSL on the OPAC's "My Account" page
271 # ----------------------------------------------------------------------------------
272 <LocationMatch .*/myopac.xml>
276 <LocationMatch /opac/extras/>
277 SSILegacyExprParser on
278 # Force to en-US for now to satisfy bbags.xml
281 AddOutputFilter INCLUDES .xml
282 AddType application/xhtml+xml .xml
285 RewriteCond %{QUERY_STRING} locale=([^&]*)
286 RewriteRule ^/opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/(.*)$ /opac/%1/extras/slimpac/$1? [redirect]
287 <LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/>
288 AddOutputFilter INCLUDES;XMLENT .html
291 # ----------------------------------------------------------------------------------
292 # Run server-side XUL and XHTML through xmlent to load the correct XML entities
293 # ----------------------------------------------------------------------------------
294 RewriteCond %{HTTP:Accept-Language} ^([a-z]{2}-[A-Z]{2})$
295 # Default to en-US if we haven't matched a locale of the form xx-YY
296 RewriteRule .? - [S=4]
297 RewriteRule ^/xul/ - [E=locale:en-US]
298 RewriteRule ^/reports/ - [E=locale:en-US]
299 RewriteRule .? - [E=locale:en-US]
300 RewriteRule .? - [S=3]
301 # Otherwise, set our real locale
302 RewriteRule ^/xul/ - [E=locale:%{HTTP:Accept-Language}]
303 RewriteRule ^/reports/ - [E=locale:%{HTTP:Accept-Language}]
304 RewriteRule .? - [E=locale:%{HTTP:Accept-Language}]
306 <LocationMatch /xul/.*\.x?html$>
307 SSILegacyExprParser on
309 XMLEntEscapeScript "no"
310 XMLEntStripComments "yes"
312 XMLEntStripDoctype "yes"
313 XMLEntContentType "text/html; charset=utf-8"
314 AddOutputFilter INCLUDES;XMLENT .xhtml
315 AddOutputFilter INCLUDES;XMLENT .html
321 <LocationMatch /xul/.*\.xul$>
322 SSILegacyExprParser on
324 XMLEntContentType "application/vnd.mozilla.xul+xml"
325 AddOutputFilter INCLUDES;XMLENT .xul
330 # ----------------------------------------------------------------------------------
332 # ----------------------------------------------------------------------------------
333 <Location /opac/extras/oisbn>
334 SetHandler perl-script
335 PerlHandler OpenILS::WWW::SuperCat::oisbn
340 <Location /opac/extras/supercat>
341 SetHandler perl-script
342 PerlHandler OpenILS::WWW::SuperCat::supercat
347 <Location /opac/extras/unapi>
348 SetHandler perl-script
349 PerlHandler OpenILS::WWW::SuperCat::unapi
354 <Location /opac/extras/feed/bookbag>
355 SetHandler perl-script
356 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
361 <Location /opac/extras/opensearch>
362 SetHandler perl-script
363 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
368 <Location /opac/extras/sru>
369 SetHandler perl-script
370 PerlHandler OpenILS::WWW::SuperCat::sru_search
375 <Location /opac/extras/sru_auth>
376 SetHandler perl-script
377 PerlHandler OpenILS::WWW::SuperCat::sru_auth_search
382 <Location /opac/extras/feed/freshmeat>
383 SetHandler perl-script
384 PerlHandler OpenILS::WWW::SuperCat::changes_feed
389 <Location /opac/extras/browse>
390 SetHandler perl-script
391 PerlHandler OpenILS::WWW::SuperCat::string_browse
396 <Location /opac/extras/startwith>
397 SetHandler perl-script
398 PerlHandler OpenILS::WWW::SuperCat::string_startwith
404 # ----------------------------------------------------------------------------------
405 # Module for displaying OpenSRF API documentation
406 # ----------------------------------------------------------------------------------
407 <Location /opac/extras/docgen.xsl>
408 AddOutputFilter INCLUDES .xsl
411 # ----------------------------------------------------------------------------------
412 # Module for processing staff-client offline scripts lives here
413 # ----------------------------------------------------------------------------------
414 <Directory "@localstatedir@/cgi-bin/offline">
415 AddHandler cgi-script .pl
422 # ----------------------------------------------------------------------------------
423 # XXX Note, it's important to explicitly set the JSON encoding style
424 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change
426 # ----------------------------------------------------------------------------------
427 # OpenSRF JSON legacy gateway
428 # ----------------------------------------------------------------------------------
430 SetHandler osrf_json_gateway_module
431 OSRFGatewayLegacyJSON "true"
434 # ----------------------------------------------------------------------------------
435 # New-style OpenSRF JSON gateway
436 # ----------------------------------------------------------------------------------
437 <Location /osrf-gateway-v1>
438 SetHandler osrf_json_gateway_module
439 OSRFGatewayLegacyJSON "false"
443 # ----------------------------------------------------------------------------------
444 # OpenSRF-over-HTTP translator
445 # (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
446 # ----------------------------------------------------------------------------------
447 <Location /osrf-http-translator>
448 SetHandler osrf_http_translator_module
452 # ----------------------------------------------------------------------------------
453 # The exporter lives here
454 # ----------------------------------------------------------------------------------
456 SetHandler perl-script
458 AuthName "Exporter Login"
459 PerlOptions +GlobalRequest
460 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
461 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
463 PerlHandler OpenILS::WWW::Exporter
468 <Location /opac/extras/merge_template>
469 SetHandler perl-script
471 AuthName "Batch Update Login"
472 PerlOptions +GlobalRequest
473 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
474 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
476 PerlHandler OpenILS::WWW::TemplateBatchBibUpdate
481 <Location /opac/extras/circ>
483 AuthName "Circ Extras Login"
484 PerlOptions +GlobalRequest
485 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
486 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
492 <Location /collections>
493 SetHandler perl-script
495 AuthName "Collections Login"
496 PerlOptions +GlobalRequest
497 PerlSetVar OILSProxyPermissions "money.collections_tracker.create"
498 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
504 # ----------------------------------------------------------------------------------
505 # Protect Standalone/Offline mode files from public view
506 # ----------------------------------------------------------------------------------
507 <Location /standalone/>
509 AuthName "Standalone Mode Login"
510 PerlOptions +GlobalRequest
511 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
512 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
519 # ----------------------------------------------------------------------------------
520 # Reporting output lives here
521 # ----------------------------------------------------------------------------------
522 <Location /reporter/>
524 AuthName "Report Login"
525 PerlOptions +GlobalRequest
526 PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
527 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
533 # ----------------------------------------------------------------------------------
534 # Selfcheck interface
535 # ----------------------------------------------------------------------------------
536 <LocationMatch .*/selfcheck.xml>
538 AuthName "Self-check Login"
539 PerlOptions +GlobalRequest
540 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
541 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
548 # ----------------------------------------------------------------------------------
550 # ----------------------------------------------------------------------------------
551 <LocationMatch /reports>
552 SSILegacyExprParser on
554 AddOutputFilter INCLUDES;XMLENT .xhtml
557 # capture locale CGI param for /reports/fm_IDL.xml
558 RewriteCond %{REQUEST_URI} ^/reports/fm_IDL.xml
559 RewriteCond %{QUERY_STRING} locale=([^&;]*)
560 RewriteRule . - [E=locale:%1]
562 <LocationMatch /reports/fm_IDL.xml>
563 IDLChunkStripPI "yes"
564 IDLChunkEscapeScript "no"
565 IDLChunkStripComments "yes"
566 IDLChunkStripDoctype "yes"
567 IDLChunkContentType "application/xml; charset=utf-8"
568 AddOutputFilter INCLUDES;IDLCHUNK .xml
572 # ----------------------------------------------------------------------------------
574 # ----------------------------------------------------------------------------------
576 SetHandler perl-script
577 PerlHandler OpenILS::WWW::EDI
583 # ----------------------------------------------------------------------------------
585 # ----------------------------------------------------------------------------------
587 SetHandler perl-script
588 PerlHandler OpenILS::WWW::XMLRPCGateway
592 <IfModule mod_headers.c>
593 Header onsuccess set Cache-Control no-cache
597 # ----------------------------------------------------------------------------------
598 # Conify - next-generation Evergreen administration interface
599 # ----------------------------------------------------------------------------------
600 RewriteRule ^/conify/([a-z]{2}-[A-Z]{2})/global/(.*)$ /conify/global/$2 [E=locale:$1,L]
602 SSILegacyExprParser on
605 XMLEntEscapeScript "no"
606 XMLEntStripComments "no"
607 XMLEntContentType "text/html; charset=utf-8"
608 AddOutputFilter INCLUDES;XMLENT .html
611 AuthName "Dojo Admin Login"
612 PerlOptions +GlobalRequest
613 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
614 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
620 # ----------------------------------------------------------------------------------
621 # The PhoneList lives here
622 # ----------------------------------------------------------------------------------
623 <Location /phonelist>
624 SetHandler perl-script
626 AuthName "PhoneList Login"
628 PerlOptions +GlobalRequest
629 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
630 PerlHandler OpenILS::WWW::PhoneList
631 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
634 <IfModule mod_headers.c>
635 Header onsuccess set Cache-Control no-cache
638 <Location /vandelay-upload>
639 SetHandler perl-script
640 PerlHandler OpenILS::WWW::Vandelay::spool_marc
645 # OpenURL 0.1 searching based on OpenSearch
646 RewriteMap openurl prg:@bindir@/openurl_map.pl
647 RewriteCond %{QUERY_STRING} (^.*$)
648 RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]
652 # General Evergreen web template processor
654 SetHandler perl-script
655 PerlHandler OpenILS::WWW::EGWeb
660 PerlSetVar OILSWebBasePath "/eg"
661 PerlSetVar OILSWebWebDir "@localstatedir@/web"
662 PerlSetVar OILSWebDefaultTemplateExtension "tt2"
664 # Enable Template-Toolkit error debugging messages (apache error log)
665 PerlSetVar OILSWebDebugTemplate "false"
666 # local cache of compiled Template Toolkit templates
667 PerlSetVar OILSWebCompiledTemplateCache "/tmp/eg_template_cache"
668 # template TTL - how long, in seconds, that Template Toolkit
669 # waits to check for updated template files
670 #PerlSetVar OILSWebTemplateStatTTL 60
672 # -------------------------------------------------------
673 # Media Prefix. In the 3rd example, the protocol (http) is enforced
674 #PerlSetVar OILSWebMediaPrefix "/media"
675 #PerlSetVar OILSWebMediaPrefix "static.example.com/media"
676 #PerlSetVar OILSWebMediaPrefix "http://static.example.com/media"
678 # Locale messages files:
680 # These appear in pairs; the first represents the user agent
681 # Accept-Language header locale, and the second represents
682 # the fully-qualified path for the corresponding PO file that
683 # contains the messages.
685 # If you enable two or more locales, then users will be able to
686 # select their preferred locale from a locale picker in the TPAC.
688 #PerlAddVar OILSWebLocale "en"
689 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/messages.en.po"
690 #PerlAddVar OILSWebLocale "en_ca"
691 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/en-CA.po"
692 #PerlAddVar OILSWebLocale "fr_ca"
693 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/fr-CA.po"
695 # Set the default locale: defaults to en-US
696 #PerlAddVar OILSWebDefaultLocale "fr_ca"
698 # Templates will be loaded from the following paths in reverse order.
699 PerlAddVar OILSWebTemplatePath "@localstatedir@/templates"
700 #PerlAddVar OILSWebTemplatePath "@localstatedir@/templates_localskin"
702 #-------------------------------------------------
703 # Added Content Configuration
704 #-------------------------------------------------
706 #SetEnv OILS_CONTENT_CAFE_USER MYUSER
707 #SetEnv OILS_CONTENT_CAFE_PASS MYPASS
710 #SetEnv OILS_LIBRARYTHING_URL http://ltfl.librarything.com/forlibraries/widget.js?id=MYID
711 #SetEnv OILS_LIBRARYTHING_HTTPS_URL https://ltfl.librarything.com/forlibraries/widget.js?id=MYID
714 #SetEnv OILS_CHILIFRESH_ACCOUNT
715 #SetEnv OILS_CHILIFRESH_URL http://chilifresh.com/on-site/js/evergreen.js
716 #SetEnv OILS_CHILIFRESH_HTTPS_URL https://secure.chilifresh.com/on-site/js/evergreen.js
719 # SetEnv OILS_NOVELIST_URL http://imageserver.ebscohost.com/novelistselect/ns2init.js
720 # SetEnv OILS_NOVELIST_PROFILE <profile>
721 # SetEnv OILS_NOVELIST_PASSWORD <password>
723 #-------------------------------------------------
725 <IfModule mod_deflate.c>
726 SetOutputFilter DEFLATE
727 BrowserMatch ^Mozilla/4 gzip-only-text/html
728 BrowserMatch ^Mozilla/4\.0[678] no-gzip
729 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
730 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
731 <IfModule mod_headers.c>
732 Header append Cache-Control "public"
733 Header append Vary User-Agent env=!dont-vary
737 <LocationMatch ^/(images|css|js)/>
738 # should pick up the default expire time from eg.conf...
739 <IfModule mod_deflate.c>
740 SetOutputFilter DEFLATE
741 BrowserMatch ^Mozilla/4 gzip-only-text/html
742 BrowserMatch ^Mozilla/4\.0[678] no-gzip
743 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
744 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
745 <IfModule mod_headers.c>
746 Header append Cache-Control "public"
747 Header append Vary User-Agent env=!dont-vary
752 PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGCatLoader"
753 # Expire the HTML quickly since we're loading dynamic data for each page
755 ExpiresByType text/html "access plus 5 seconds"
758 PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGKPacLoader"
759 PerlSetVar KPacConfigFile "@sysconfdir@/kpac.xml.example"
761 ExpiresByType text/html "access plus 5 seconds"
764 # Note: the template processor will decline handling anything it does not
765 # have an explicit configuration for, which means it will fall back to
766 # Apache to serve the file. However, in the interest of speed, go ahead
767 # and tell Apache to avoid asking OpenILS::WWW::EGWeb for static content.
768 # Add more exemptions as needed.
769 <LocationMatch ^/eg/.*(\.js|\.html|\.xhtml|\.xml|\.jpg|\.png|\.gif)$>
773 # ----------------------------------------------------------------------------------
774 # Some mod_deflate setup
775 # ----------------------------------------------------------------------------------
776 <IfModule mod_deflate.c>
778 ## optional logging for mod_deflate debugging
779 ##DeflateFilterNote Input instream
780 ##DeflateFilterNote Output outstream
781 ##DeflateFilterNote Ratio ratio
783 ##LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
784 ##CustomLog /var/log/apache2/deflate_log deflate
786 # There are problems with XMLENT and mod_deflate - so lets disable it
787 # This is where we don't have a pre-existing LocationMatch directive earlier
788 <LocationMatch /opac/.*\.xml$>
791 <LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/.*\.html$>
794 <LocationMatch /reports/.*\.xhtml$>
797 <LocationMatch /conify/.*\.html$>
805 SetHandler perl-script
806 PerlHandler OpenILS::WWW::IDL2js
811 <IfModule mod_headers.c>
812 Header append Cache-Control "public"
815 <IfModule mod_deflate.c>
816 SetOutputFilter DEFLATE
817 BrowserMatch ^Mozilla/4 gzip-only-text/html
818 BrowserMatch ^Mozilla/4\.0[678] no-gzip
819 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
820 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
821 <IfModule mod_headers.c>
822 Header append Vary User-Agent env=!dont-vary
827 <LocationMatch /eg/staff/>
829 PerlSetVar OILSWebStopAtIndex "true"
831 # sample staff-specific translation files
832 #PerlAddVar OILSWebLocale "en_ca"
833 #PerlAddVar OILSWebLocale "/openils/var/data/locale/staff/en-CA.po"
834 #PerlAddVar OILSWebLocale "fr_ca"
835 #PerlAddVar OILSWebLocale "/openils/var/data/locale/staff/fr-CA.po"
839 <IfModule mod_headers.c>
840 Header append Cache-Control "public"
842 <IfModule mod_deflate.c>
843 SetOutputFilter DEFLATE
844 BrowserMatch ^Mozilla/4 gzip-only-text/html
845 BrowserMatch ^Mozilla/4\.0[678] no-gzip
846 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
847 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
848 <IfModule mod_headers.c>
849 Header append Vary User-Agent env=!dont-vary
855 # Uncomment the following to force SSL for everything. Note that this defeats caching
856 # and you will suffer a performance hit.
857 #RewriteCond %{HTTPS} off
858 #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,R,L]