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
20 # ----------------------------------------------------------------------------------
21 # Configure the gateway
22 # ----------------------------------------------------------------------------------
23 OSRFGatewayConfig /openils/conf/opensrf_core.xml
26 # ----------------------------------------------------------------------------------
27 # Set up the book jackets URL
28 # XXX This pulls images from Amazon, don't use this in a production environment
29 # This is an example of how you can have bookjacket images via Apache redirect,
30 # if there is no full-fledged added content plugin for the site you want to
32 # ----------------------------------------------------------------------------------
35 #RewriteRule /opac/extras/ac/jacket/small/(.*) \
36 # http://images.amazon.com/images/P/$1.01._SCMZZZZZZZ_.jpg [P,L]
37 #RewriteRule /opac/extras/ac/jacket/large/(.*) \
38 # http://images.amazon.com/images/P/$1.01._SCLZZZZZZZ_.jpg [P,L]
40 # ----------------------------------------------------------------------------------
41 # Added content plugin
42 # ----------------------------------------------------------------------------------
43 <Location /opac/extras/ac/>
44 SetHandler perl-script
45 PerlHandler OpenILS::WWW::AddedContent
52 # ----------------------------------------------------------------------------------
54 # ----------------------------------------------------------------------------------
55 <LocationMatch /opac/>
56 AddType application/xhtml+xml .xml
58 # - configure mod_xmlent
60 XMLEntEscapeScript "no"
61 XMLEntStripComments "yes"
62 XMLEntContentType "text/html; charset=utf-8"
63 # forces quirks mode which we want for now
64 XMLEntStripDoctype "yes"
66 # - set up the include handlers
68 AddOutputFilter INCLUDES .xsl
69 AddOutputFilter INCLUDES;XMLENT .xml
71 # add languages as necessary
72 SetEnvIf Request_URI "/en-US/" locale=en-US
73 SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
74 SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
76 # This gives you the option to configure a different host to serve OPAC images from
77 # Specify the hostname (withouth protocol) and path to the images. Protocol will
78 # be determined at runtime
79 #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
80 #SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
81 #SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
86 # ----------------------------------------------------------------------------------
87 # Force SSL on the OPAC's "My Account" page
88 # ----------------------------------------------------------------------------------
89 <LocationMatch .*/myopac.xml>
93 <LocationMatch /opac/extras/>
94 AddType application/xhtml+xml .xml
97 <LocationMatch /opac/.*/extras/slimpac/>
98 AddOutputFilter INCLUDES;XMLENT .html
101 # ----------------------------------------------------------------------------------
102 # Run server-side XUL and XHTML through xmlent to load the correct XML entities
103 # ----------------------------------------------------------------------------------
104 <LocationMatch /xul/.*\.xhtml$>
106 AddOutputFilter INCLUDES;XMLENT .xhtml
109 # We only support one locale (en-US) for the time being
113 <LocationMatch /xul/.*\.xul$>
115 XMLEntContentType "application/vnd.mozilla.xul+xml"
116 AddOutputFilter INCLUDES;XMLENT .xul
119 # We only support one locale (en-US) for the time being
124 # ----------------------------------------------------------------------------------
126 # ----------------------------------------------------------------------------------
127 <Location /opac/extras/oisbn>
128 SetHandler perl-script
129 PerlHandler OpenILS::WWW::SuperCat::oisbn
134 <Location /opac/extras/supercat>
135 SetHandler perl-script
136 PerlHandler OpenILS::WWW::SuperCat::supercat
141 <Location /opac/extras/unapi>
142 SetHandler perl-script
143 PerlHandler OpenILS::WWW::SuperCat::unapi
148 <Location /opac/extras/feed/bookbag>
149 SetHandler perl-script
150 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
155 <Location /opac/extras/opensearch>
156 SetHandler perl-script
157 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
162 <Location /opac/extras/feed/freshmeat>
163 SetHandler perl-script
164 PerlHandler OpenILS::WWW::SuperCat::changes_feed
169 <Location /opac/extras/browse>
170 SetHandler perl-script
171 PerlHandler OpenILS::WWW::SuperCat::string_browse
177 # ----------------------------------------------------------------------------------
178 # Module for processing staff-client offline scripts lives here
179 # ----------------------------------------------------------------------------------
180 <Directory "/openils/var/cgi-bin/offline">
181 AddHandler cgi-script .pl
188 # ----------------------------------------------------------------------------------
189 # XXX Note, it's important to explicitly set the JSON encoding style
190 # (OSRFGatewayLegacyJSON), since the default encoding style will likely change
192 # ----------------------------------------------------------------------------------
193 # OpenSRF JSON legacy gateway
194 # ----------------------------------------------------------------------------------
196 SetHandler osrf_json_gateway_module
197 OSRFGatewayLegacyJSON "true"
200 # ----------------------------------------------------------------------------------
201 # New-style OpenSRF JSON gateway
202 # ----------------------------------------------------------------------------------
203 <Location /osrf-gateway-v1>
204 SetHandler osrf_json_gateway_module
205 OSRFGatewayLegacyJSON "false"
210 # ----------------------------------------------------------------------------------
211 # The exporter lives here
212 # ----------------------------------------------------------------------------------
214 SetHandler perl-script
215 PerlSetVar OILSProxyTitle "Exporter Login"
216 PerlSetVar OILSProxyDescription "Please log in to export records"
217 PerlSetVar OILSProxyPermissions "STAFF_LOGIN"
218 PerlHandler OpenILS::WWW::Proxy OpenILS::WWW::Exporter
223 # ----------------------------------------------------------------------------------
224 # Reporting output lives here
225 # ----------------------------------------------------------------------------------
226 <Location /reporter/>
227 SetHandler perl-script
228 PerlSetVar OILSProxyTitle "Report Login"
229 PerlSetVar OILSProxyDescription "Please log in to view this report"
230 PerlSetVar OILSProxyPermissions "VIEW_REPORT_OUTPUT"
231 PerlHandler OpenILS::WWW::Proxy
237 # ----------------------------------------------------------------------------------
239 # ----------------------------------------------------------------------------------
240 <LocationMatch /reports/>
242 AddOutputFilter INCLUDES .xhtml
245 # ----------------------------------------------------------------------------------
247 # ----------------------------------------------------------------------------------
249 SetHandler perl-script
250 PerlHandler OpenILS::WWW::XMLRPCGateway
257 # ----------------------------------------------------------------------------------
258 # Django admin interface (experimental)
259 # - requires mod_python and django
260 # - requires a symlink from WEBROOT/media to
261 # /usr/lib/python2.4/site-packages/django/contrib/admin/media/ (or similar)
262 # ----------------------------------------------------------------------------------
263 #<Location /ils_setup/>
266 # Allow from 10.0.0.0/8
267 # SetHandler mod_python
268 # PythonHandler django.core.handlers.modpython
269 # SetEnv DJANGO_SETTINGS_MODULE ils_admin.settings
271 # PythonPath "['/openils/var/admin/', '/usr/lib/python2.4/site-packages/'] +sys.path"
272 # PythonAutoReload On