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 AddType application/xhtml+xml .xml
173 # - configure mod_xmlent
175 XMLEntEscapeScript "no"
176 XMLEntStripComments "yes"
177 XMLEntContentType "text/html; charset=utf-8"
178 # forces quirks mode which we want for now
179 XMLEntStripDoctype "yes"
181 # - set up the include handlers
183 AddOutputFilter INCLUDES .xsl
184 AddOutputFilter INCLUDES;XMLENT .xml
186 SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
188 # This gives you the option to configure a different host to serve OPAC images from
189 # Specify the hostname (without protocol) and path to the images. Protocol will
190 # be determined at runtime
191 #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
193 # In addition to loading images from a static host, you can also load CSS and/or
194 # Javascript from a static host or hosts. Protocol will be determined at runtime
195 # and/or by configuration options immediately following.
196 #SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
197 #SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
199 # If you are not able to serve static content via https and
200 # wish to force http:// (and are comfortable with mixed-content
201 # warnings in client browsers), set this:
202 #SetEnvIf Request_URI ".*" OILS_OPAC_STATIC_PROTOCOL=http
204 # If you would prefer to fall back to your non-static servers for
205 # https pages, avoiding mixed-content warnings in client browsers
206 # and are willing to accept some increased server load, set this:
207 #SetEnvIf Request_URI ".*" OILS_OPAC_BYPASS_STATIC_FOR_HTTPS=yes
209 # Specify a ChiliFresh account to integrate their services with the OPAC
210 #SetEnv OILS_CHILIFRESH_ACCOUNT
211 #SetEnv OILS_CHILIFRESH_PROFILE
212 #SetEnv OILS_CHILIFRESH_URL http://chilifresh.com/on-site/js/evergreen.js
213 #SetEnv OILS_CHILIFRESH_HTTPS_URL https://secure.chilifresh.com/on-site/js/evergreen.js
215 # Specify the initial script URL for Novelist (containing account credentials, etc.)
216 #SetEnv OILS_NOVELIST_URL
219 # Uncomment to force SSL any time a patron is logged in. This protects
220 # authentication tokens. Left commented out for backwards compat for now.
221 #SetEnv OILS_OPAC_FORCE_LOGIN_SSL 1
223 # If set, the skin uses the combined JS file at $SKINDIR/js/combined.js
224 #SetEnv OILS_OPAC_COMBINED_JS 1
229 # ----------------------------------------------------------------------------------
230 # Some mod_deflate fun
231 # ----------------------------------------------------------------------------------
232 <IfModule mod_deflate.c>
233 SetOutputFilter DEFLATE
235 BrowserMatch ^Mozilla/4 gzip-only-text/html
236 BrowserMatch ^Mozilla/4\.0[678] no-gzip
237 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
239 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
241 <IfModule mod_headers.c>
242 Header append Vary User-Agent env=!dont-vary
249 # ----------------------------------------------------------------------------------
250 # Some mod_deflate fun
251 # ----------------------------------------------------------------------------------
252 <IfModule mod_deflate.c>
253 SetOutputFilter DEFLATE
255 BrowserMatch ^Mozilla/4 gzip-only-text/html
256 BrowserMatch ^Mozilla/4\.0[678] no-gzip
257 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
259 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
261 <IfModule mod_headers.c>
262 Header append Vary User-Agent env=!dont-vary
268 # ----------------------------------------------------------------------------------
269 # Force SSL on the OPAC's "My Account" page
270 # ----------------------------------------------------------------------------------
271 <LocationMatch .*/myopac.xml>
275 <LocationMatch /opac/extras/>
276 # Force to en-US for now to satisfy bbags.xml
279 AddOutputFilter INCLUDES .xml
280 AddType application/xhtml+xml .xml
283 RewriteCond %{QUERY_STRING} locale=([^&]*)
284 RewriteRule ^/opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/(.*)$ /opac/%1/extras/slimpac/$1? [redirect]
285 <LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/>
286 AddOutputFilter INCLUDES;XMLENT .html
289 # ----------------------------------------------------------------------------------
290 # Run server-side XUL and XHTML through xmlent to load the correct XML entities
291 # ----------------------------------------------------------------------------------
292 RewriteCond %{HTTP:Accept-Language} ^([a-z]{2}-[A-Z]{2})$
293 # Default to en-US if we haven't matched a locale of the form xx-YY
294 RewriteRule .? - [S=4]
295 RewriteRule ^/xul/ - [E=locale:en-US]
296 RewriteRule ^/reports/ - [E=locale:en-US]
297 RewriteRule .? - [E=locale:en-US]
298 RewriteRule .? - [S=3]
299 # Otherwise, set our real locale
300 RewriteRule ^/xul/ - [E=locale:%{HTTP:Accept-Language}]
301 RewriteRule ^/reports/ - [E=locale:%{HTTP:Accept-Language}]
302 RewriteRule .? - [E=locale:%{HTTP:Accept-Language}]
304 <LocationMatch /xul/.*\.x?html$>
306 XMLEntEscapeScript "no"
307 XMLEntStripComments "yes"
309 XMLEntStripDoctype "yes"
310 XMLEntContentType "text/html; charset=utf-8"
311 AddOutputFilter INCLUDES;XMLENT .xhtml
312 AddOutputFilter INCLUDES;XMLENT .html
318 <LocationMatch /xul/.*\.xul$>
320 XMLEntContentType "application/vnd.mozilla.xul+xml"
321 AddOutputFilter INCLUDES;XMLENT .xul
326 # ----------------------------------------------------------------------------------
328 # ----------------------------------------------------------------------------------
329 <Location /opac/extras/oisbn>
330 SetHandler perl-script
331 PerlHandler OpenILS::WWW::SuperCat::oisbn
336 <Location /opac/extras/supercat>
337 SetHandler perl-script
338 PerlHandler OpenILS::WWW::SuperCat::supercat
343 <Location /opac/extras/unapi>
344 SetHandler perl-script
345 PerlHandler OpenILS::WWW::SuperCat::unapi
350 <Location /opac/extras/feed/bookbag>
351 SetHandler perl-script
352 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
357 <Location /opac/extras/opensearch>
358 SetHandler perl-script
359 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
364 <Location /opac/extras/sru>
365 SetHandler perl-script
366 PerlHandler OpenILS::WWW::SuperCat::sru_search
371 <Location /opac/extras/sru_auth>
372 SetHandler perl-script
373 PerlHandler OpenILS::WWW::SuperCat::sru_auth_search
378 <Location /opac/extras/feed/freshmeat>
379 SetHandler perl-script
380 PerlHandler OpenILS::WWW::SuperCat::changes_feed
385 <Location /opac/extras/browse>
386 SetHandler perl-script
387 PerlHandler OpenILS::WWW::SuperCat::string_browse
392 <Location /opac/extras/startwith>
393 SetHandler perl-script
394 PerlHandler OpenILS::WWW::SuperCat::string_startwith
400 # ----------------------------------------------------------------------------------
401 # Module for displaying OpenSRF API documentation
402 # ----------------------------------------------------------------------------------
403 <Location /opac/extras/docgen.xsl>
404 AddOutputFilter INCLUDES .xsl
407 # ----------------------------------------------------------------------------------
408 # Module for processing staff-client offline scripts lives here
409 # ----------------------------------------------------------------------------------
410 <Directory "@localstatedir@/cgi-bin/offline">
411 AddHandler cgi-script .pl
418 # ----------------------------------------------------------------------------------
419 # XXX Note, it's important to explicitly set the JSON encoding style
420 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change
422 # ----------------------------------------------------------------------------------
423 # OpenSRF JSON legacy gateway
424 # ----------------------------------------------------------------------------------
426 SetHandler osrf_json_gateway_module
427 OSRFGatewayLegacyJSON "true"
430 # ----------------------------------------------------------------------------------
431 # New-style OpenSRF JSON gateway
432 # ----------------------------------------------------------------------------------
433 <Location /osrf-gateway-v1>
434 SetHandler osrf_json_gateway_module
435 OSRFGatewayLegacyJSON "false"
439 # ----------------------------------------------------------------------------------
440 # OpenSRF-over-HTTP translator
441 # (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
442 # ----------------------------------------------------------------------------------
443 <Location /osrf-http-translator>
444 SetHandler osrf_http_translator_module
448 # ----------------------------------------------------------------------------------
449 # The exporter lives here
450 # ----------------------------------------------------------------------------------
452 SetHandler perl-script
454 AuthName "Exporter Login"
455 PerlOptions +GlobalRequest
456 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
457 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
459 PerlHandler OpenILS::WWW::Exporter
465 <Location /opac/extras/merge_template>
466 SetHandler perl-script
468 AuthName "Batch Update Login"
469 PerlOptions +GlobalRequest
470 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
471 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
473 PerlHandler OpenILS::WWW::TemplateBatchBibUpdate
479 <Location /opac/extras/circ>
481 AuthName "Circ Extras Login"
482 PerlOptions +GlobalRequest
483 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
484 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
491 <Location /collections>
492 SetHandler perl-script
494 AuthName "Collections Login"
495 PerlOptions +GlobalRequest
496 PerlSetVar OILSProxyPermissions "money.collections_tracker.create"
497 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
534 # ----------------------------------------------------------------------------------
535 # Selfcheck interface
536 # ----------------------------------------------------------------------------------
537 <LocationMatch .*/selfcheck.xml>
539 AuthName "Self-check Login"
540 PerlOptions +GlobalRequest
541 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
542 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
550 # ----------------------------------------------------------------------------------
552 # ----------------------------------------------------------------------------------
553 <LocationMatch /reports>
555 AddOutputFilter INCLUDES;XMLENT .xhtml
558 # capture locale CGI param for /reports/fm_IDL.xml
559 RewriteCond %{REQUEST_URI} ^/reports/fm_IDL.xml
560 RewriteCond %{QUERY_STRING} locale=([^&;]*)
561 RewriteRule . - [E=locale:%1]
563 <LocationMatch /reports/fm_IDL.xml>
564 IDLChunkStripPI "yes"
565 IDLChunkEscapeScript "no"
566 IDLChunkStripComments "yes"
567 IDLChunkStripDoctype "yes"
568 IDLChunkContentType "application/xml; charset=utf-8"
569 AddOutputFilter INCLUDES;IDLCHUNK .xml
573 # ----------------------------------------------------------------------------------
575 # ----------------------------------------------------------------------------------
577 SetHandler perl-script
578 PerlHandler OpenILS::WWW::EDI
584 # ----------------------------------------------------------------------------------
586 # ----------------------------------------------------------------------------------
588 SetHandler perl-script
589 PerlHandler OpenILS::WWW::XMLRPCGateway
593 <IfModule mod_headers.c>
594 Header onsuccess set Cache-Control no-cache
598 # ----------------------------------------------------------------------------------
599 # Conify - next-generation Evergreen administration interface
600 # ----------------------------------------------------------------------------------
601 RewriteRule ^/conify/([a-z]{2}-[A-Z]{2})/global/(.*)$ /conify/global/$2 [E=locale:$1,L]
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
621 # ----------------------------------------------------------------------------------
622 # The PhoneList lives here
623 # ----------------------------------------------------------------------------------
624 <Location /phonelist>
625 SetHandler perl-script
627 AuthName "PhoneList Login"
629 PerlOptions +GlobalRequest
630 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
631 PerlHandler OpenILS::WWW::PhoneList
632 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
636 <IfModule mod_headers.c>
637 Header onsuccess set Cache-Control no-cache
640 <Location /vandelay-upload>
641 SetHandler perl-script
642 PerlHandler OpenILS::WWW::Vandelay::spool_marc
647 # OpenURL 0.1 searching based on OpenSearch
648 RewriteMap openurl prg:@bindir@/openurl_map.pl
649 RewriteCond %{QUERY_STRING} (^.*$)
650 RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]
654 # General Evergreen web template processor
656 SetHandler perl-script
657 PerlHandler OpenILS::WWW::EGWeb
662 PerlSetVar OILSWebBasePath "/eg"
663 PerlSetVar OILSWebWebDir "@localstatedir@/web"
664 PerlSetVar OILSWebDefaultTemplateExtension "tt2"
666 # Enable Template-Toolkit error debugging messages (apache error log)
667 PerlSetVar OILSWebDebugTemplate "false"
668 # local cache of compiled Template Toolkit templates
669 PerlSetVar OILSWebCompiledTemplateCache "/tmp/eg_template_cache"
670 # template TTL - how long, in seconds, that Template Toolkit
671 # waits to check for updated template files
672 #PerlSetVar OILSWebTemplateStatTTL 60
674 # -------------------------------------------------------
675 # Media Prefix. In the 3rd example, the protocol (http) is enforced
676 #PerlSetVar OILSWebMediaPrefix "/media"
677 #PerlSetVar OILSWebMediaPrefix "static.example.com/media"
678 #PerlSetVar OILSWebMediaPrefix "http://static.example.com/media"
680 # Locale messages files:
682 # These appear in pairs; the first represents the user agent
683 # Accept-Language header locale, and the second represents
684 # the fully-qualified path for the corresponding PO file that
685 # contains the messages.
687 # If you enable two or more locales, then users will be able to
688 # select their preferred locale from a locale picker in the TPAC.
690 #PerlAddVar OILSWebLocale "en"
691 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/messages.en.po"
692 #PerlAddVar OILSWebLocale "en_ca"
693 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/en-CA.po"
694 #PerlAddVar OILSWebLocale "fr_ca"
695 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/fr-CA.po"
697 # Set the default locale: defaults to en-US
698 #PerlAddVar OILSWebDefaultLocale "fr_ca"
700 # Templates will be loaded from the following paths in reverse order.
701 PerlAddVar OILSWebTemplatePath "@localstatedir@/templates"
702 #PerlAddVar OILSWebTemplatePath "@localstatedir@/templates_localskin"
704 #-------------------------------------------------
705 # Added Content Configuration
706 #-------------------------------------------------
708 #SetEnv OILS_CONTENT_CAFE_USER MYUSER
709 #SetEnv OILS_CONTENT_CAFE_PASS MYPASS
712 #SetEnv OILS_LIBRARYTHING_URL http://ltfl.librarything.com/forlibraries/widget.js?id=MYID
713 #SetEnv OILS_LIBRARYTHING_HTTPS_URL https://ltfl.librarything.com/forlibraries/widget.js?id=MYID
716 #SetEnv OILS_CHILIFRESH_ACCOUNT
717 #SetEnv OILS_CHILIFRESH_URL http://chilifresh.com/on-site/js/evergreen.js
718 #SetEnv OILS_CHILIFRESH_HTTPS_URL https://secure.chilifresh.com/on-site/js/evergreen.js
719 #-------------------------------------------------
721 <IfModule mod_deflate.c>
722 SetOutputFilter DEFLATE
723 BrowserMatch ^Mozilla/4 gzip-only-text/html
724 BrowserMatch ^Mozilla/4\.0[678] no-gzip
725 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
726 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
727 <IfModule mod_headers.c>
728 Header append Cache-Control "public"
729 Header append Vary User-Agent env=!dont-vary
733 <LocationMatch ^/(images|css|js)/>
734 # should pick up the default expire time from eg.conf...
735 <IfModule mod_deflate.c>
736 SetOutputFilter DEFLATE
737 BrowserMatch ^Mozilla/4 gzip-only-text/html
738 BrowserMatch ^Mozilla/4\.0[678] no-gzip
739 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
740 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
741 <IfModule mod_headers.c>
742 Header append Cache-Control "public"
743 Header append Vary User-Agent env=!dont-vary
748 PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGCatLoader"
749 # Expire the HTML quickly since we're loading dynamic data for each page
751 ExpiresByType text/html "access plus 5 seconds"
754 PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGKPacLoader"
755 PerlSetVar KPacConfigFile "@sysconfdir@/kpac.xml.example"
757 ExpiresByType text/html "access plus 5 seconds"
760 # Note: the template processor will decline handling anything it does not
761 # have an explicit configuration for, which means it will fall back to
762 # Apache to serve the file. However, in the interest of speed, go ahead
763 # and tell Apache to avoid asking OpenILS::WWW::EGWeb for static content.
764 # Add more exemptions as needed.
765 <LocationMatch ^/eg/.*(\.js|\.html|\.xhtml|\.xml|\.jpg|\.png|\.gif)$>
769 # ----------------------------------------------------------------------------------
770 # Some mod_deflate setup
771 # ----------------------------------------------------------------------------------
772 <IfModule mod_deflate.c>
773 ## optional logging for mod_deflate debugging
774 ##DeflateFilterNote Input instream
775 ##DeflateFilterNote Output outstream
776 ##DeflateFilterNote Ratio ratio
778 ##LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
779 ##CustomLog /var/log/apache2/deflate_log deflate
781 # There are problems with XMLENT and mod_deflate - so lets disable it
782 # This is where we don't have a pre-existing LocationMatch directive earlier
783 <LocationMatch /opac/.*\.xml$>
786 <LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/.*\.html$>
789 <LocationMatch /reports/.*\.xhtml$>
792 <LocationMatch /conify/.*\.html$>
800 SetHandler perl-script
801 PerlHandler OpenILS::WWW::IDL2js
806 <IfModule mod_headers.c>
807 Header append Cache-Control "public"
810 <IfModule mod_deflate.c>
811 SetOutputFilter DEFLATE
812 BrowserMatch ^Mozilla/4 gzip-only-text/html
813 BrowserMatch ^Mozilla/4\.0[678] no-gzip
814 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
815 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
816 <IfModule mod_headers.c>
817 Header append Vary User-Agent env=!dont-vary
822 <LocationMatch /eg/staff/>
824 PerlSetVar OILSWebStopAtIndex "true"
826 # sample staff-specific translation files
827 #PerlAddVar OILSWebLocale "en_ca"
828 #PerlAddVar OILSWebLocale "/openils/var/data/locale/staff/en-CA.po"
829 #PerlAddVar OILSWebLocale "fr_ca"
830 #PerlAddVar OILSWebLocale "/openils/var/data/locale/staff/fr-CA.po"
834 <IfModule mod_headers.c>
835 Header append Cache-Control "public"
837 <IfModule mod_deflate.c>
838 SetOutputFilter DEFLATE
839 BrowserMatch ^Mozilla/4 gzip-only-text/html
840 BrowserMatch ^Mozilla/4\.0[678] no-gzip
841 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
842 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
843 <IfModule mod_headers.c>
844 Header append Vary User-Agent env=!dont-vary
849 # Uncomment the following to force SSL for everything. Note that this defeats caching
850 # and you will suffer a performance hit.
851 #RewriteCond %{HTTPS} off
852 #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,R,L]