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 RewriteRule ^/$ %{REQUEST_SCHEME}://%{HTTP_HOST}/eg/opac/home [R=301,L]
11 # ----------------------------------------------------------------------------------
12 # Redirect staff to the correct URL if they forget to include the final /
13 # ----------------------------------------------------------------------------------
14 RewriteRule ^/eg/staff$ https://%{HTTP_HOST}/eg/staff/ [R=301,L]
16 # ----------------------------------------------------------------------------------
17 # Point / to the IP address redirector
18 # ----------------------------------------------------------------------------------
20 # SetHandler perl-script
21 # PerlHandler OpenILS::WWW::Redirect
24 # #PerlSetVar OILSRedirectSkin "default"
25 # # OILSRedirectDepth defaults to the depth of the branch that the OPAC was directed to
26 # #PerlSetVar OILSRedirectDepth "0"
27 # #PerlSetVar OILSRedirectLocale "en-US"
28 # # Use the template-toolkit opac
29 # #PerlSetVar OILSRedirectTpac "true"
34 # ----------------------------------------------------------------------------------
35 # Assign a default locale to the accessible OPAC
36 # ----------------------------------------------------------------------------------
37 RewriteRule ^/opac/extras/slimpac/start.html$ %{REQUEST_SCHEME}://%{HTTP_HOST}/opac/en-US/extras/slimpac/start.html [R=301,L]
38 RewriteRule ^/opac/extras/slimpac/advanced.html$ %{REQUEST_SCHEME}://%{HTTP_HOST}/opac/en-US/extras/slimpac/advanced.html [R=301,L]
40 # ----------------------------------------------------------------------------------
41 # Configure the gateway and translator
42 # ----------------------------------------------------------------------------------
43 OSRFGatewayConfig @sysconfdir@/opensrf_core.xml
44 OSRFTranslatorConfig @sysconfdir@/opensrf_core.xml
45 # Translator memcache server. Default is localhost
46 # OSRFTranslatorCacheServer 127.0.0.1:11211
49 # ----------------------------------------------------------------------------------
50 # Added content plugin
51 # ----------------------------------------------------------------------------------
52 <Location /opac/extras/ac/>
53 SetHandler perl-script
54 PerlHandler OpenILS::WWW::AddedContent
60 # Lock clearing cache down to STAFF_LOGIN
61 <Location /opac/extras/ac/clearcache/>
62 PerlAccessHandler OpenILS::WWW::AccessHandler
63 PerlSetVar OILSAccessHandlerPermission "STAFF_LOGIN"
66 # Autosuggest for searches
67 <Location /opac/extras/autosuggest>
68 SetHandler perl-script
69 PerlHandler OpenILS::WWW::AutoSuggest
75 <Location /opac/extras/flattener>
76 SetHandler perl-script
77 PerlHandler OpenILS::WWW::FlatFielder
82 # ----------------------------------------------------------------------------------
83 # Replace broken cover images with a transparent GIF by default
84 # ----------------------------------------------------------------------------------
86 RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
87 /opac/images/blank.png [P,L]
89 <Location /opac/extras/ac/jacket>
90 ErrorDocument 404 /opac/images/blank.png
93 # Uncomment one or more of these to have a "no image" image other than the blank
96 # Note: There are no default images provided for these, you will need to provide
97 # your own "no image" image(s).
99 #<Location /opac/extras/ac/jacket/small>
100 # ErrorDocument 404 /opac/images/noimage_small.png
103 #<Location /opac/extras/ac/jacket/medium>
104 # ErrorDocument 404 /opac/images/noimage_medium.png
107 #<Location /opac/extras/ac/jacket/large>
108 # ErrorDocument 404 /opac/images/noimage_large.png
111 # ----------------------------------------------------------------------------------
112 # Add the row ID (RID) and date so we can make unAPI happy
113 # ----------------------------------------------------------------------------------
114 RewriteCond %{QUERY_STRING} (^r|&r)=(\d+)
115 RewriteRule . - [E=OILS_OPAC_RID:%2,E=OILS_TIME_YEAR:%{TIME_YEAR}]
117 # ----------------------------------------------------------------------------------
118 # Pull the locale from the URL
119 # ----------------------------------------------------------------------------------
120 RewriteCond %{REQUEST_URI} ^/opac/(.*?)/
121 RewriteRule . - [E=locale:%1]
123 # ----------------------------------------------------------------------------------
124 # Rewrite JSPac->TPac with redirects
125 # ----------------------------------------------------------------------------------
127 RewriteRule /opac/[^/]*/skin/default/xml/myopac.xml %{REQUEST_SCHEME}://%{HTTP_HOST}/eg/opac/myopac/main?%{ENV:OILS_JSPAC_SEARCH_TYPE}%{ENV:OILS_JSPAC_SEARCH_TERMS}%{ENV:OILS_JSPAC_SEARCH_LOCATION} [NE,R,L]
129 # -----------------------------------------------------------------------------$
130 # Force HTTPS for /eg/circ/selfcheck
131 # -----------------------------------------------------------------------------$
132 RewriteCond %{HTTPS} off
133 RewriteRule ^(/eg/circ/selfcheck) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
135 # ----------------------------------------------------------------------------------
136 # For sanity reasons, default indexes to Off
137 # ----------------------------------------------------------------------------------
140 # ----------------------------------------------------------------------------------
142 # ----------------------------------------------------------------------------------
143 <LocationMatch /opac/>
144 SSILegacyExprParser on
145 AddType application/xhtml+xml .xml
147 # - configure mod_xmlent
149 XMLEntEscapeScript "no"
150 XMLEntStripComments "yes"
151 XMLEntContentType "text/html; charset=utf-8"
152 # forces quirks mode which we want for now
153 XMLEntStripDoctype "yes"
155 # - set up the include handlers
157 AddOutputFilter INCLUDES .xsl
158 AddOutputFilter INCLUDES;XMLENT .xml
160 SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
162 # This gives you the option to configure a different host to serve OPAC images from
163 # Specify the hostname (without protocol) and path to the images. Protocol will
164 # be determined at runtime
165 #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
167 # In addition to loading images from a static host, you can also load CSS and/or
168 # Javascript from a static host or hosts. Protocol will be determined at runtime
169 # and/or by configuration options immediately following.
170 #SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
171 #SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
173 # If you are not able to serve static content via https and
174 # wish to force http:// (and are comfortable with mixed-content
175 # warnings in client browsers), set this:
176 #SetEnvIf Request_URI ".*" OILS_OPAC_STATIC_PROTOCOL=http
178 # If you would prefer to fall back to your non-static servers for
179 # https pages, avoiding mixed-content warnings in client browsers
180 # and are willing to accept some increased server load, set this:
181 #SetEnvIf Request_URI ".*" OILS_OPAC_BYPASS_STATIC_FOR_HTTPS=yes
183 # Specify a ChiliFresh account to integrate their services with the OPAC
184 #SetEnv OILS_CHILIFRESH_ACCOUNT
185 #SetEnv OILS_CHILIFRESH_PROFILE
186 #SetEnv OILS_CHILIFRESH_URL http://chilifresh.com/on-site/js/evergreen.js
187 #SetEnv OILS_CHILIFRESH_HTTPS_URL https://secure.chilifresh.com/on-site/js/evergreen.js
189 # Specify the initial script URL for Novelist (containing account credentials, etc.)
190 #SetEnv OILS_NOVELIST_URL
191 #SetEnv OILS_NOVELIST_PROFILE
192 #SetEnv OILS_NOVELIST_PASSWORD
194 # Uncomment to force SSL any time a patron is logged in. This protects
195 # authentication tokens. Left commented out for backwards compat for now.
196 #SetEnv OILS_OPAC_FORCE_LOGIN_SSL 1
198 # If set, the skin uses the combined JS file at $SKINDIR/js/combined.js
199 #SetEnv OILS_OPAC_COMBINED_JS 1
204 # ----------------------------------------------------------------------------------
205 # Some mod_deflate fun
206 # ----------------------------------------------------------------------------------
207 <IfModule mod_deflate.c>
208 SetOutputFilter DEFLATE
210 BrowserMatch ^Mozilla/4 gzip-only-text/html
211 BrowserMatch ^Mozilla/4\.0[678] no-gzip
212 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
214 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
216 <IfModule mod_headers.c>
217 Header append Vary User-Agent env=!dont-vary
224 # ----------------------------------------------------------------------------------
225 # Some mod_deflate fun
226 # ----------------------------------------------------------------------------------
227 <IfModule mod_deflate.c>
228 SetOutputFilter DEFLATE
230 BrowserMatch ^Mozilla/4 gzip-only-text/html
231 BrowserMatch ^Mozilla/4\.0[678] no-gzip
232 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
234 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
236 <IfModule mod_headers.c>
237 Header append Vary User-Agent env=!dont-vary
243 # ----------------------------------------------------------------------------------
244 # Force SSL on the OPAC's "My Account" page
245 # ----------------------------------------------------------------------------------
246 <LocationMatch .*/myopac.xml>
250 RewriteCond %{QUERY_STRING} locale=([^&]*)
251 RewriteRule ^/opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/(.*)$ %{REQUEST_SCHEME}://%{HTTP_HOST}/opac/%1/extras/slimpac/$1? [redirect]
252 <LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/>
253 AddOutputFilter INCLUDES;XMLENT .html
256 # ----------------------------------------------------------------------------------
257 # Run server-side XUL and XHTML through xmlent to load the correct XML entities
258 # ----------------------------------------------------------------------------------
259 RewriteCond %{HTTP:Accept-Language} ^([a-z]{2}-[A-Z]{2})$
260 # Default to en-US if we haven't matched a locale of the form xx-YY
261 RewriteRule .? - [S=4]
262 RewriteRule ^/xul/ - [E=locale:en-US]
263 RewriteRule ^/reports/ - [E=locale:en-US]
264 RewriteRule .? - [E=locale:en-US]
265 RewriteRule .? - [S=3]
266 # Otherwise, set our real locale
267 RewriteRule ^/xul/ - [E=locale:%{HTTP:Accept-Language}]
268 RewriteRule ^/reports/ - [E=locale:%{HTTP:Accept-Language}]
269 RewriteRule .? - [E=locale:%{HTTP:Accept-Language}]
271 <LocationMatch /xul/.*\.x?html$>
272 SSILegacyExprParser on
274 XMLEntEscapeScript "no"
275 XMLEntStripComments "yes"
277 XMLEntStripDoctype "yes"
278 XMLEntContentType "text/html; charset=utf-8"
279 AddOutputFilter INCLUDES;XMLENT .xhtml
280 AddOutputFilter INCLUDES;XMLENT .html
286 <LocationMatch /xul/.*\.xul$>
287 SSILegacyExprParser on
289 XMLEntContentType "application/vnd.mozilla.xul+xml"
290 AddOutputFilter INCLUDES;XMLENT .xul
295 # ----------------------------------------------------------------------------------
297 # ----------------------------------------------------------------------------------
298 <Location /opac/extras/oisbn>
299 SetHandler perl-script
300 PerlHandler OpenILS::WWW::SuperCat::oisbn
305 <Location /opac/extras/supercat>
306 SetHandler perl-script
307 PerlHandler OpenILS::WWW::SuperCat::supercat
312 <Location /opac/extras/unapi>
313 SetHandler perl-script
314 PerlHandler OpenILS::WWW::SuperCat::unapi
319 <Location /opac/extras/feed/bookbag>
320 SetHandler perl-script
321 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
326 <Location /opac/extras/opensearch>
327 SetHandler perl-script
328 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
333 <Location /opac/extras/sru>
334 SetHandler perl-script
335 PerlHandler OpenILS::WWW::SuperCat::sru_search
340 <Location /opac/extras/sru_auth>
341 SetHandler perl-script
342 PerlHandler OpenILS::WWW::SuperCat::sru_auth_search
347 <Location /opac/extras/feed/freshmeat>
348 SetHandler perl-script
349 PerlHandler OpenILS::WWW::SuperCat::changes_feed
354 <Location /opac/extras/browse>
355 SetHandler perl-script
356 PerlHandler OpenILS::WWW::SuperCat::string_browse
361 <Location /opac/extras/startwith>
362 SetHandler perl-script
363 PerlHandler OpenILS::WWW::SuperCat::string_startwith
369 # ----------------------------------------------------------------------------------
370 # Module for displaying OpenSRF API documentation
371 # ----------------------------------------------------------------------------------
372 <Location /opac/extras/docgen.xsl>
373 AddOutputFilter INCLUDES .xsl
376 # ----------------------------------------------------------------------------------
377 # Module for processing staff-client offline scripts lives here
378 # ----------------------------------------------------------------------------------
379 <Directory "@localstatedir@/cgi-bin/offline">
380 AddHandler cgi-script .pl
387 # ----------------------------------------------------------------------------------
388 # XXX Note, it's important to explicitly set the JSON encoding style
389 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change
391 # ----------------------------------------------------------------------------------
392 # OpenSRF JSON legacy gateway
393 # ----------------------------------------------------------------------------------
395 SetHandler osrf_json_gateway_module
396 OSRFGatewayLegacyJSON "true"
399 # ----------------------------------------------------------------------------------
400 # New-style OpenSRF JSON gateway
401 # ----------------------------------------------------------------------------------
402 <Location /osrf-gateway-v1>
403 SetHandler osrf_json_gateway_module
404 OSRFGatewayLegacyJSON "false"
408 # ----------------------------------------------------------------------------------
409 # OpenSRF-over-HTTP translator
410 # (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
411 # ----------------------------------------------------------------------------------
412 <Location /osrf-http-translator>
413 SetHandler osrf_http_translator_module
417 # ----------------------------------------------------------------------------------
418 # The exporter lives here
419 # ----------------------------------------------------------------------------------
421 SetHandler perl-script
423 AuthName "Exporter Login"
424 PerlOptions +GlobalRequest
425 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
426 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
428 PerlHandler OpenILS::WWW::Exporter
433 <Location /opac/extras/merge_template>
434 SetHandler perl-script
436 AuthName "Batch Update Login"
437 PerlOptions +GlobalRequest
438 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
439 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
441 PerlHandler OpenILS::WWW::TemplateBatchBibUpdate
446 <Location /opac/extras/circ>
448 AuthName "Circ Extras Login"
449 PerlOptions +GlobalRequest
450 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
451 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
457 <Location /collections>
458 SetHandler perl-script
460 AuthName "Collections Login"
461 PerlOptions +GlobalRequest
462 PerlSetVar OILSProxyPermissions "money.collections_tracker.create"
463 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
469 # ----------------------------------------------------------------------------------
470 # Protect Standalone/Offline mode files from public view
471 # ----------------------------------------------------------------------------------
472 <Location /standalone/>
474 AuthName "Standalone Mode Login"
475 PerlOptions +GlobalRequest
476 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
477 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
484 # ----------------------------------------------------------------------------------
485 # Reporting output lives here
486 # ----------------------------------------------------------------------------------
487 <Location /reporter/>
489 AuthName "Report Login"
490 PerlOptions +GlobalRequest
491 PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
492 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
498 # ----------------------------------------------------------------------------------
500 # ----------------------------------------------------------------------------------
501 <LocationMatch /reports.*\.x?html>
502 SSILegacyExprParser on
504 XMLEntContentType "text/html; charset=utf-8"
505 AddOutputFilter INCLUDES;XMLENT .xhtml
506 AddOutputFilter INCLUDES;XMLENT .html
509 <LocationMatch /reports>
510 SSILegacyExprParser on
512 AddOutputFilter INCLUDES;XMLENT .xhtml
515 # capture locale CGI param for /reports/fm_IDL.xml
516 RewriteCond %{REQUEST_URI} ^/reports/fm_IDL.xml
517 RewriteCond %{QUERY_STRING} locale=([^&;]*)
518 RewriteRule . - [E=locale:%1]
520 <LocationMatch /reports/fm_IDL.xml>
521 IDLChunkStripPI "yes"
522 IDLChunkEscapeScript "no"
523 IDLChunkStripComments "yes"
524 IDLChunkStripDoctype "yes"
525 IDLChunkContentType "application/xml; charset=utf-8"
526 AddOutputFilter INCLUDES;IDLCHUNK .xml
530 # ----------------------------------------------------------------------------------
532 # ----------------------------------------------------------------------------------
534 SetHandler perl-script
535 PerlHandler OpenILS::WWW::EDI
541 # ----------------------------------------------------------------------------------
543 # ----------------------------------------------------------------------------------
545 SetHandler perl-script
546 PerlHandler OpenILS::WWW::XMLRPCGateway
550 <IfModule mod_headers.c>
551 Header onsuccess set Cache-Control no-cache
555 # ----------------------------------------------------------------------------------
556 # Conify - next-generation Evergreen administration interface
557 # ----------------------------------------------------------------------------------
558 RewriteRule ^/conify/([a-z]{2}-[A-Z]{2})/global/(.*)$ /conify/global/$2 [E=locale:$1,L]
560 SSILegacyExprParser on
563 XMLEntEscapeScript "no"
564 XMLEntStripComments "no"
565 XMLEntContentType "text/html; charset=utf-8"
566 AddOutputFilter INCLUDES;XMLENT .html
569 AuthName "Dojo Admin Login"
570 PerlOptions +GlobalRequest
571 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
572 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
578 # ----------------------------------------------------------------------------------
579 # The PhoneList lives here
580 # ----------------------------------------------------------------------------------
581 <Location /phonelist>
582 SetHandler perl-script
584 AuthName "PhoneList Login"
586 PerlOptions +GlobalRequest
587 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
588 PerlHandler OpenILS::WWW::PhoneList
589 PerlAuthenHandler OpenILS::WWW::Proxy::Authen
592 <IfModule mod_headers.c>
593 Header onsuccess set Cache-Control no-cache
596 <Location /vandelay-upload>
597 SetHandler perl-script
598 PerlHandler OpenILS::WWW::Vandelay::spool_marc
603 # OpenURL 0.1 searching based on OpenSearch
604 RewriteMap openurl prg:@bindir@/openurl_map.pl
605 RewriteCond %{QUERY_STRING} (^.*$)
606 RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]
610 # General Evergreen web template processor
612 SetHandler perl-script
613 PerlHandler OpenILS::WWW::EGWeb
618 PerlSetVar OILSWebBasePath "/eg"
619 PerlSetVar OILSWebWebDir "@localstatedir@/web"
620 PerlSetVar OILSWebDefaultTemplateExtension "tt2"
622 # Port Apache listens on for HTTP traffic. Used for HTTP requests
623 # routed from Perl handlers back to the same Apache instance, like
624 # added content requests. Use this when running Apache with a
625 # non-standard port, typical with a proxy setup. Defaults to "80".
626 # PerlSetVar OILSWebInternalHTTPPort "7080"
628 # Enable Template-Toolkit error debugging messages (apache error log)
629 PerlSetVar OILSWebDebugTemplate "false"
630 # local cache of compiled Template Toolkit templates
631 PerlSetVar OILSWebCompiledTemplateCache "/tmp/eg_template_cache"
632 # template TTL - how long, in seconds, that Template Toolkit
633 # waits to check for updated template files
634 #PerlSetVar OILSWebTemplateStatTTL 60
636 # -------------------------------------------------------
637 # Media Prefix. In the 3rd example, the protocol (http) is enforced
638 #PerlSetVar OILSWebMediaPrefix "/media"
639 #PerlSetVar OILSWebMediaPrefix "static.example.com/media"
640 #PerlSetVar OILSWebMediaPrefix "http://static.example.com/media"
642 # Locale messages files:
644 # These appear in pairs; the first represents the user agent
645 # Accept-Language header locale, and the second represents
646 # the fully-qualified path for the corresponding PO file that
647 # contains the messages.
649 # If you enable two or more locales, then users will be able to
650 # select their preferred locale from a locale picker in the TPAC.
652 #PerlAddVar OILSWebLocale "en"
653 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/opac/messages.en.po"
654 #PerlAddVar OILSWebLocale "en_ca"
655 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/opac/en-CA.po"
656 #PerlAddVar OILSWebLocale "fr_ca"
657 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/opac/fr-CA.po"
659 # Set the default locale: defaults to en-US
660 #PerlAddVar OILSWebDefaultLocale "fr_ca"
662 # Templates will be loaded from the following paths in reverse order.
663 PerlAddVar OILSWebTemplatePath "@localstatedir@/templates"
664 #PerlAddVar OILSWebTemplatePath "@localstatedir@/templates_localskin"
666 #-------------------------------------------------
667 # Added Content Configuration
668 #-------------------------------------------------
670 #SetEnv OILS_CONTENT_CAFE_USER MYUSER
671 #SetEnv OILS_CONTENT_CAFE_PASS MYPASS
674 #SetEnv OILS_LIBRARYTHING_URL http://ltfl.librarything.com/forlibraries/widget.js?id=MYID
675 #SetEnv OILS_LIBRARYTHING_HTTPS_URL https://ltfl.librarything.com/forlibraries/widget.js?id=MYID
678 #SetEnv OILS_CHILIFRESH_ACCOUNT
679 #SetEnv OILS_CHILIFRESH_URL http://chilifresh.com/on-site/js/evergreen.js
680 #SetEnv OILS_CHILIFRESH_HTTPS_URL https://secure.chilifresh.com/on-site/js/evergreen.js
683 # SetEnv OILS_NOVELIST_URL http://imageserver.ebscohost.com/novelistselect/ns2init.js
684 # SetEnv OILS_NOVELIST_PROFILE <profile>
685 # SetEnv OILS_NOVELIST_PASSWORD <password>
687 #-------------------------------------------------
689 <IfModule mod_deflate.c>
690 SetOutputFilter DEFLATE
691 BrowserMatch ^Mozilla/4 gzip-only-text/html
692 BrowserMatch ^Mozilla/4\.0[678] no-gzip
693 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
694 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
695 <IfModule mod_headers.c>
696 Header append Cache-Control "public"
697 Header append Vary User-Agent env=!dont-vary
701 <LocationMatch ^/(images|css|js)/>
702 # should pick up the default expire time from eg.conf...
703 <IfModule mod_deflate.c>
704 SetOutputFilter DEFLATE
705 BrowserMatch ^Mozilla/4 gzip-only-text/html
706 BrowserMatch ^Mozilla/4\.0[678] no-gzip
707 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
708 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
709 <IfModule mod_headers.c>
710 Header append Cache-Control "public"
711 Header append Vary User-Agent env=!dont-vary
716 PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGCatLoader"
717 # Expire the HTML quickly since we're loading dynamic data for each page
719 ExpiresByType text/html "access plus 5 seconds"
722 PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGKPacLoader"
723 PerlSetVar KPacConfigFile "@sysconfdir@/kpac.xml.example"
725 ExpiresByType text/html "access plus 5 seconds"
728 # Note: the template processor will decline handling anything it does not
729 # have an explicit configuration for, which means it will fall back to
730 # Apache to serve the file. However, in the interest of speed, go ahead
731 # and tell Apache to avoid asking OpenILS::WWW::EGWeb for static content.
732 # Add more exemptions as needed.
733 <LocationMatch ^/eg/.*(\.js|\.html|\.xhtml|\.xml|\.jpg|\.png|\.gif)$>
737 # ----------------------------------------------------------------------------------
738 # Some mod_deflate setup
739 # ----------------------------------------------------------------------------------
740 <IfModule mod_deflate.c>
742 ## optional logging for mod_deflate debugging
743 ##DeflateFilterNote Input instream
744 ##DeflateFilterNote Output outstream
745 ##DeflateFilterNote Ratio ratio
747 ##LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
748 ##CustomLog /var/log/apache2/deflate_log deflate
750 # There are problems with XMLENT and mod_deflate - so lets disable it
751 # This is where we don't have a pre-existing LocationMatch directive earlier
752 <LocationMatch /opac/.*\.xml$>
755 <LocationMatch /opac/[a-z]{2}-[A-Z]{2}/extras/slimpac/.*\.html$>
758 <LocationMatch /reports/.*\.xhtml$>
761 <LocationMatch /conify/.*\.html$>
769 SetHandler perl-script
770 PerlHandler OpenILS::WWW::IDL2js
775 <IfModule mod_headers.c>
776 Header append Cache-Control "public"
779 <IfModule mod_deflate.c>
780 SetOutputFilter DEFLATE
781 BrowserMatch ^Mozilla/4 gzip-only-text/html
782 BrowserMatch ^Mozilla/4\.0[678] no-gzip
783 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
784 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
785 <IfModule mod_headers.c>
786 Header append Vary User-Agent env=!dont-vary
791 <LocationMatch /eg/staff/>
793 PerlSetVar OILSWebStopAtIndex "true"
795 RewriteCond %{HTTPS} off
796 RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,R,L]
798 # sample staff-specific translation files
799 #PerlAddVar OILSWebLocale "en_ca"
800 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/staff/en-CA.po"
801 #PerlAddVar OILSWebLocale "fr_ca"
802 #PerlAddVar OILSWebLocale "@localstatedir@/data/locale/staff/fr-CA.po"
806 <IfModule mod_headers.c>
807 Header append Cache-Control "public"
809 <IfModule mod_deflate.c>
810 SetOutputFilter DEFLATE
811 BrowserMatch ^Mozilla/4 gzip-only-text/html
812 BrowserMatch ^Mozilla/4\.0[678] no-gzip
813 BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
814 SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
815 <IfModule mod_headers.c>
816 Header append Vary User-Agent env=!dont-vary
822 # Uncomment the following to force SSL for everything. Note that this defeats caching
823 # and you will suffer a performance hit.
824 #RewriteCond %{HTTPS} off
825 #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,R,L]