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
109 # We only support one locale (en-US) for the time being
113 # ----------------------------------------------------------------------------------
115 # ----------------------------------------------------------------------------------
116 <Location /opac/extras/oisbn>
117 SetHandler perl-script
118 PerlHandler OpenILS::WWW::SuperCat::oisbn
123 <Location /opac/extras/supercat>
124 SetHandler perl-script
125 PerlHandler OpenILS::WWW::SuperCat::supercat
130 <Location /opac/extras/unapi>
131 SetHandler perl-script
132 PerlHandler OpenILS::WWW::SuperCat::unapi
137 <Location /opac/extras/feed/bookbag>
138 SetHandler perl-script
139 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
144 <Location /opac/extras/opensearch>
145 SetHandler perl-script
146 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
151 <Location /opac/extras/feed/freshmeat>
152 SetHandler perl-script
153 PerlHandler OpenILS::WWW::SuperCat::changes_feed
158 <Location /opac/extras/browse>
159 SetHandler perl-script
160 PerlHandler OpenILS::WWW::SuperCat::string_browse
166 # ----------------------------------------------------------------------------------
167 # Module for processing staff-client offline scripts lives here
168 # ----------------------------------------------------------------------------------
169 <Directory "/openils/var/cgi-bin/offline">
170 AddHandler cgi-script .pl
177 # ----------------------------------------------------------------------------------
178 # OpenSRF JSON gateway
179 # ----------------------------------------------------------------------------------
181 SetHandler osrf_json_gateway_module
186 # ----------------------------------------------------------------------------------
187 # The exporter lives here
188 # ----------------------------------------------------------------------------------
190 SetHandler perl-script
191 PerlHandler OpenILS::WWW::Exporter
196 # ----------------------------------------------------------------------------------
197 # Reporting output lives here
198 # ----------------------------------------------------------------------------------
199 <Location /reporter/>
200 SetHandler perl-script
201 PerlSetVar ProxyTitle "Report Login"
202 PerlSetVar ProxyDescription "Please log in to view this report"
203 PerlSetVar ProxyPermissions "VIEW_REPORT_OUTPUT"
204 PerlHandler OpenILS::WWW::Proxy
210 # ----------------------------------------------------------------------------------
212 # ----------------------------------------------------------------------------------
213 <LocationMatch /reports/>
215 AddOutputFilter INCLUDES .xhtml
218 # ----------------------------------------------------------------------------------
220 # ----------------------------------------------------------------------------------
222 SetHandler perl-script
223 PerlHandler OpenILS::WWW::XMLRPCGateway
230 # ----------------------------------------------------------------------------------
231 # Django admin interface (experimental)
232 # - requires mod_python and django
233 # - requires a symlink from WEBROOT/media to
234 # /usr/lib/python2.4/site-packages/django/contrib/admin/media/ (or similar)
235 # ----------------------------------------------------------------------------------
236 #<Location /ils_setup/>
239 # Allow from 10.0.0.0/8
240 # SetHandler mod_python
241 # PythonHandler django.core.handlers.modpython
242 # SetEnv DJANGO_SETTINGS_MODULE ils_admin.settings
244 # PythonPath "['/openils/var/admin/', '/usr/lib/python2.4/site-packages/'] +sys.path"
245 # PythonAutoReload On