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 # ----------------------------------------------------------------------------------
7 # ----------------------------------------------------------------------------------
9 # ----------------------------------------------------------------------------------
10 RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml
12 # ----------------------------------------------------------------------------------
13 # Assign a default locale to the accessible OPAC
14 # ----------------------------------------------------------------------------------
15 RedirectMatch 301 ^/opac/extras/slimpac/start.html$ /opac/en-US/extras/slimpac/start.html
16 RedirectMatch 301 ^/opac/extras/slimpac/advanced.html$ /opac/en-US/extras/slimpac/advanced.html
18 # ----------------------------------------------------------------------------------
19 # Configure the gateway
20 # ----------------------------------------------------------------------------------
21 OSRFGatewayConfig /openils/conf/opensrf_core.xml
23 # ----------------------------------------------------------------------------------
24 # Added content plugin
25 # ----------------------------------------------------------------------------------
26 <Location /opac/extras/ac/>
27 SetHandler perl-script
28 PerlHandler OpenILS::WWW::AddedContent
34 # ----------------------------------------------------------------------------------
35 # Replace broken cover images with a transparent GIF by default
36 # ----------------------------------------------------------------------------------
38 RewriteRule ^/opac/extras/ac/jacket/(small|medium|large)/$ \
39 /opac/images/blank.png [P,L]
41 # ----------------------------------------------------------------------------------
43 # ----------------------------------------------------------------------------------
44 <LocationMatch /opac/>
45 AddType application/xhtml+xml .xml
47 # - configure mod_xmlent
49 XMLEntEscapeScript "no"
50 XMLEntStripComments "yes"
51 XMLEntContentType "text/html; charset=utf-8"
52 # forces quirks mode which we want for now
53 XMLEntStripDoctype "yes"
55 # - set up the include handlers
57 AddOutputFilter INCLUDES .xsl
58 AddOutputFilter INCLUDES;XMLENT .xml
60 # add languages as necessary
61 SetEnvIf Request_URI "/en-US/" locale=en-US
62 SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
63 SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
65 # This gives you the option to configure a different host to serve OPAC images from
66 # Specify the hostname (withouth protocol) and path to the images. Protocol will
67 # be determined at runtime
68 #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
69 #SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
70 #SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
75 # ----------------------------------------------------------------------------------
76 # Force SSL on the OPAC's "My Account" page
77 # ----------------------------------------------------------------------------------
78 <LocationMatch .*/myopac.xml>
82 <LocationMatch /opac/extras/>
83 AddType application/xhtml+xml .xml
86 <LocationMatch /opac/.*/extras/slimpac/>
87 AddOutputFilter INCLUDES;XMLENT .html
90 # ----------------------------------------------------------------------------------
91 # Run server-side XUL and XHTML through xmlent to load the correct XML entities
92 # ----------------------------------------------------------------------------------
93 <LocationMatch /xul/.*\.xhtml$>
95 XMLEntEscapeScript "no"
96 AddOutputFilter INCLUDES;XMLENT .xhtml
99 # We only support one locale (en-US) for the time being
103 <LocationMatch /xul/.*\.xul$>
105 XMLEntContentType "application/vnd.mozilla.xul+xml"
106 AddOutputFilter INCLUDES;XMLENT .xul
109 # We only support one locale (en-US) for the time being
114 # ----------------------------------------------------------------------------------
116 # ----------------------------------------------------------------------------------
117 <Location /opac/extras/oisbn>
118 SetHandler perl-script
119 PerlHandler OpenILS::WWW::SuperCat::oisbn
124 <Location /opac/extras/supercat>
125 SetHandler perl-script
126 PerlHandler OpenILS::WWW::SuperCat::supercat
131 <Location /opac/extras/unapi>
132 SetHandler perl-script
133 PerlHandler OpenILS::WWW::SuperCat::unapi
138 <Location /opac/extras/feed/bookbag>
139 SetHandler perl-script
140 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
145 <Location /opac/extras/opensearch>
146 SetHandler perl-script
147 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
152 <Location /opac/extras/sru>
153 SetHandler perl-script
154 PerlHandler OpenILS::WWW::SuperCat::sru_search
159 <Location /opac/extras/feed/freshmeat>
160 SetHandler perl-script
161 PerlHandler OpenILS::WWW::SuperCat::changes_feed
166 <Location /opac/extras/browse>
167 SetHandler perl-script
168 PerlHandler OpenILS::WWW::SuperCat::string_browse
174 # ----------------------------------------------------------------------------------
175 # Module for processing staff-client offline scripts lives here
176 # ----------------------------------------------------------------------------------
177 <Directory "/openils/var/cgi-bin/offline">
178 AddHandler cgi-script .pl
185 # ----------------------------------------------------------------------------------
186 # XXX Note, it's important to explicitly set the JSON encoding style
187 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change
189 # ----------------------------------------------------------------------------------
190 # OpenSRF JSON legacy gateway
191 # ----------------------------------------------------------------------------------
193 SetHandler osrf_json_gateway_module
194 OSRFGatewayLegacyJSON "true"
197 # ----------------------------------------------------------------------------------
198 # New-style OpenSRF JSON gateway
199 # ----------------------------------------------------------------------------------
200 <Location /osrf-gateway-v1>
201 SetHandler osrf_json_gateway_module
202 OSRFGatewayLegacyJSON "false"
206 # ----------------------------------------------------------------------------------
207 # OpenSRF-over-HTTP translator
208 # (http://open-ils.org/dokuwiki/doku.php?id=opensrf_over_http)
209 # ----------------------------------------------------------------------------------
210 <Location /osrf_http_translator>
211 SetHandler osrf_http_translator_module
215 # ----------------------------------------------------------------------------------
216 # The exporter lives here
217 # ----------------------------------------------------------------------------------
219 SetHandler perl-script
220 PerlSetVar OILSProxyTitle "Exporter Login"
221 PerlSetVar OILSProxyDescription "Please log in to export records"
222 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
223 PerlHandler OpenILS::WWW::Proxy OpenILS::WWW::Exporter
228 # ----------------------------------------------------------------------------------
229 # Reporting output lives here
230 # ----------------------------------------------------------------------------------
231 <Location /reporter/>
232 SetHandler perl-script
233 PerlSetVar OILSProxyTitle "Report Login"
234 PerlSetVar OILSProxyDescription "Please log in to view this report"
235 PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
236 PerlHandler OpenILS::WWW::Proxy
242 # ----------------------------------------------------------------------------------
243 # Selfcheck interface
244 # ----------------------------------------------------------------------------------
245 <LocationMatch .*/selfcheck.xml>
246 SetHandler perl-script
247 PerlSetVar OILSProxyTitle "Selfcheck Login"
248 PerlSetVar OILSProxyDescription "Please log in to activate the selfcheck interface"
249 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
250 PerlHandler OpenILS::WWW::Proxy
257 # ----------------------------------------------------------------------------------
259 # ----------------------------------------------------------------------------------
260 <LocationMatch /reports/>
262 AddOutputFilter INCLUDES .xhtml
265 # ----------------------------------------------------------------------------------
267 # ----------------------------------------------------------------------------------
269 SetHandler perl-script
270 PerlHandler OpenILS::WWW::XMLRPCGateway
276 # ----------------------------------------------------------------------------------
277 # Conify - next-generation Evergreen administration interface
278 # ----------------------------------------------------------------------------------
280 RewriteRule ^/conify/.*/global/(.*)$ /conify/global/$1
283 XMLEntEscapeScript "no"
284 XMLEntStripComments "yes"
285 XMLEntContentType "text/html; charset=utf-8"
286 AddOutputFilter INCLUDES .html
288 SetHandler perl-script
289 PerlSetVar OILSProxyTitle "Dojo Admin Login"
290 PerlSetVar OILSProxyDescription "Please log in to administer Evergreen"
291 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
292 PerlHandler OpenILS::WWW::Proxy
298 # OpenURL 0.1 searching based on OpenSearch
300 RewriteMap openurl prg:/openils/bin/openurl_map.pl
301 RewriteCond %{QUERY_STRING} (^.*$)
302 RewriteRule ^/openurl$ ${openurl:%1} [NE,PT]