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 # ----------------------------------------------------------------------------------
32 RewriteRule /opac/extras/jacket/small/(.*) \
33 http://images.amazon.com/images/P/$1.01._SCMZZZZZZZ_.jpg [P,L]
34 RewriteRule /opac/extras/jacket/large/(.*) \
35 http://images.amazon.com/images/P/$1.01._SCLZZZZZZZ_.jpg [P,L]
39 # ----------------------------------------------------------------------------------
40 # Added content plugin
41 # ----------------------------------------------------------------------------------
42 <Location /opac/extras/ac/>
43 SetHandler perl-script
44 PerlHandler OpenILS::WWW::AddedContent
51 # ----------------------------------------------------------------------------------
53 # ----------------------------------------------------------------------------------
54 <LocationMatch /opac/>
55 AddType application/xhtml+xml .xml
57 # - configure mod_xmlent
59 XMLEntEscapeScript "no"
60 XMLEntStripComments "yes"
61 XMLEntContentType "text/html; charset=utf-8"
62 # forces quirks mode which we want for now
63 XMLEntStripDoctype "yes"
65 # - set up the include handlers
67 AddOutputFilter INCLUDES .xsl
68 AddOutputFilter INCLUDES;XMLENT .xml
70 # add languages as necessary
71 SetEnvIf Request_URI "/en-US/" locale=en-US
72 SetEnvIf Request_URI "/fr-CA/" locale=fr-CA
73 SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
75 # This gives you the option to configure a different host to serve OPAC images from
76 # Specify the hostname (withouth protocol) and path to the images. Protocol will
77 # be determined at runtime
78 #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=static.example.org/opac/
79 #SetEnvIf Request_URI ".*" OILS_OPAC_CSS_HOST=static.example.org/opac/
80 #SetEnvIf Request_URI ".*" OILS_OPAC_JS_HOST=static.example.org/opac/
85 # ----------------------------------------------------------------------------------
86 # Force SSL on the OPAC's "My Account" page
87 # ----------------------------------------------------------------------------------
88 <LocationMatch .*/myopac.xml>
92 <LocationMatch /opac/extras/>
93 AddType application/xhtml+xml .xml
96 <LocationMatch /opac/.*/extras/slimpac/>
97 AddOutputFilter INCLUDES;XMLENT .html
100 # ----------------------------------------------------------------------------------
101 # Run server-side XUL through xmlent to load the correct XML entities
102 # ----------------------------------------------------------------------------------
103 <LocationMatch /xul/.*\.xul$>
105 XMLEntContentType "application/vnd.mozilla.xul+xml"
106 AddOutputFilter INCLUDES;XMLENT .xul
110 # ----------------------------------------------------------------------------------
112 # ----------------------------------------------------------------------------------
113 <Location /opac/extras/oisbn>
114 SetHandler perl-script
115 PerlHandler OpenILS::WWW::SuperCat::oisbn
120 <Location /opac/extras/supercat>
121 SetHandler perl-script
122 PerlHandler OpenILS::WWW::SuperCat::supercat
127 <Location /opac/extras/unapi>
128 SetHandler perl-script
129 PerlHandler OpenILS::WWW::SuperCat::unapi
134 <Location /opac/extras/feed/bookbag>
135 SetHandler perl-script
136 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
141 <Location /opac/extras/opensearch>
142 SetHandler perl-script
143 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
148 <Location /opac/extras/feed/freshmeat>
149 SetHandler perl-script
150 PerlHandler OpenILS::WWW::SuperCat::changes_feed
155 <Location /opac/extras/browse>
156 SetHandler perl-script
157 PerlHandler OpenILS::WWW::SuperCat::string_browse
163 # ----------------------------------------------------------------------------------
164 # Module for processing staff-client offline scripts lives here
165 # ----------------------------------------------------------------------------------
166 <Directory "/openils/var/cgi-bin/offline">
167 AddHandler cgi-script .pl
174 # ----------------------------------------------------------------------------------
175 # OpenSRF JSON gateway
176 # ----------------------------------------------------------------------------------
178 SetHandler osrf_json_gateway_module
183 # ----------------------------------------------------------------------------------
184 # The exporter lives here
185 # ----------------------------------------------------------------------------------
187 SetHandler perl-script
188 PerlHandler OpenILS::WWW::Exporter
193 # ----------------------------------------------------------------------------------
194 # Reporting output lives here
195 # ----------------------------------------------------------------------------------
196 <Location /reporter/>
197 SetHandler perl-script
198 PerlHandler OpenILS::Reporter::Proxy
204 # ----------------------------------------------------------------------------------
206 # ----------------------------------------------------------------------------------
207 <LocationMatch /reports/>
209 AddOutputFilter INCLUDES .xhtml
212 # ----------------------------------------------------------------------------------
214 # ----------------------------------------------------------------------------------
216 SetHandler perl-script
217 PerlHandler OpenILS::WWW::XMLRPCGateway
224 # ----------------------------------------------------------------------------------
225 # Django admin interface (experimental)
226 # - requires mod_python and django
227 # - requires a symlink from WEBROOT/media to
228 # /usr/lib/python2.4/site-packages/django/contrib/admin/media/ (or similar)
229 # ----------------------------------------------------------------------------------
230 #<Location /ils_setup/>
233 # Allow from 10.0.0.0/8
234 # SetHandler mod_python
235 # PythonHandler django.core.handlers.modpython
236 # SetEnv DJANGO_SETTINGS_MODULE ils_admin.settings
238 # PythonPath "['/openils/var/admin/', '/usr/lib/python2.4/site-packages/'] +sys.path"
239 # PythonAutoReload On