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
13 # ----------------------------------------------------------------------------------
14 # Configure the gateway
15 # ----------------------------------------------------------------------------------
16 OSRFGatewayConfig /openils/conf/opensrf_core.xml
19 # ----------------------------------------------------------------------------------
20 # Set up the book jackets URL
21 # XXX This pulls images from Amazon, don't use this in a production environment
22 # ----------------------------------------------------------------------------------
25 RewriteRule /opac/extras/jacket/small/(.*) \
26 http://images.amazon.com/images/P/$1.01._SCMZZZZZZZ_.jpg [P,L]
27 RewriteRule /opac/extras/jacket/large/(.*) \
28 http://images.amazon.com/images/P/$1.01._SCLZZZZZZZ_.jpg [P,L]
32 # ----------------------------------------------------------------------------------
33 # Added content plugin
34 # ----------------------------------------------------------------------------------
35 <Location /opac/extras/ac/>
36 SetHandler perl-script
37 PerlHandler OpenILS::WWW::AddedContent
44 # ----------------------------------------------------------------------------------
46 # ----------------------------------------------------------------------------------
47 <LocationMatch /opac/>
48 AddType application/xhtml+xml .xml
50 # - configure mod_xmlent
52 XMLEntEscapeScript "no"
53 XMLEntStripComments "yes"
54 XMLEntContentType "text/html; charset=utf-8"
55 # forces quirks mode which we want for now
56 XMLEntStripDoctype "yes"
58 # - set up the include handlers
60 AddOutputFilter INCLUDES .xsl
61 AddOutputFilter INCLUDES;XMLENT .xml
63 # add languages as necessary
64 SetEnvIf Request_URI "/en-US/" locale=en-US
65 SetEnvIf Request_URI "/fr/" locale=fr
66 SetEnvIf Request_URI ".*" OILS_OPAC_BASE=/opac/
70 # ----------------------------------------------------------------------------------
71 # Force SSL on the OPAC's "My Account" page
72 # ----------------------------------------------------------------------------------
73 <LocationMatch .*/myopac.xml>
77 <LocationMatch /opac/extras/>
78 AddType application/xhtml+xml .xml
81 <LocationMatch /opac/extras/slimpac/>
82 AddOutputFilter INCLUDES .html
85 # ----------------------------------------------------------------------------------
86 # Run server-side XUL through xmlent to load the correct XML entities
87 # ----------------------------------------------------------------------------------
88 <LocationMatch /xul/.*\.xul$>
90 XMLEntContentType "application/vnd.mozilla.xul+xml"
91 AddOutputFilter INCLUDES;XMLENT .xul
95 # ----------------------------------------------------------------------------------
97 # ----------------------------------------------------------------------------------
98 <Location /opac/extras/oisbn>
99 SetHandler perl-script
100 PerlHandler OpenILS::WWW::SuperCat::oisbn
105 <Location /opac/extras/supercat>
106 SetHandler perl-script
107 PerlHandler OpenILS::WWW::SuperCat::supercat
112 <Location /opac/extras/unapi>
113 SetHandler perl-script
114 PerlHandler OpenILS::WWW::SuperCat::unapi
119 <Location /opac/extras/feed/bookbag>
120 SetHandler perl-script
121 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
126 <Location /opac/extras/opensearch>
127 SetHandler perl-script
128 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
133 <Location /opac/extras/feed/freshmeat>
134 SetHandler perl-script
135 PerlHandler OpenILS::WWW::SuperCat::changes_feed
140 <Location /opac/extras/browse>
141 SetHandler perl-script
142 PerlHandler OpenILS::WWW::SuperCat::string_browse
148 # ----------------------------------------------------------------------------------
149 # Module for processing staff-client offline scripts lives here
150 # ----------------------------------------------------------------------------------
151 <Directory "/openils/var/cgi-bin/offline">
152 AddHandler cgi-script .pl
159 # ----------------------------------------------------------------------------------
160 # OpenSRF JSON gateway
161 # ----------------------------------------------------------------------------------
163 SetHandler osrf_json_gateway_module
168 # ----------------------------------------------------------------------------------
169 # Reporting output lives here
170 # ----------------------------------------------------------------------------------
171 <Location /reporter/>
172 SetHandler perl-script
173 PerlHandler OpenILS::Reporter::Proxy
179 # ----------------------------------------------------------------------------------
181 # ----------------------------------------------------------------------------------
182 <LocationMatch /reports/>
184 AddOutputFilter INCLUDES .xhtml
187 # ----------------------------------------------------------------------------------
189 # ----------------------------------------------------------------------------------
191 SetHandler perl-script
192 PerlHandler OpenILS::WWW::XMLRPCGateway
199 # ----------------------------------------------------------------------------------
200 # Django admin interface (experimental)
201 # - requires mod_python and django
202 # - requires a symlink from WEBROOT/media to
203 # /usr/lib/python2.4/site-packages/django/contrib/admin/media/ (or similar)
204 # ----------------------------------------------------------------------------------
205 #<Location /ils_setup/>
208 # Allow from 10.0.0.0/8
209 # SetHandler mod_python
210 # PythonHandler django.core.handlers.modpython
211 # SetEnv DJANGO_SETTINGS_MODULE ils_admin.settings
213 # PythonPath "['/openils/var/admin/', '/usr/lib/python2.4/site-packages/'] +sys.path"
214 # PythonAutoReload On