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/
68 # This gives you the option to configure a different host to serve OPAC images from
69 # Specify the hostname (withouth protocol) and path to the images. Protocol will
70 # be determined at runtime
71 #SetEnvIf Request_URI ".*" OILS_OPAC_IMAGES_HOST=images.example.org/opac/extras/jacket/
76 # ----------------------------------------------------------------------------------
77 # Force SSL on the OPAC's "My Account" page
78 # ----------------------------------------------------------------------------------
79 <LocationMatch .*/myopac.xml>
83 <LocationMatch /opac/extras/>
84 AddType application/xhtml+xml .xml
87 <LocationMatch /opac/extras/slimpac/>
88 AddOutputFilter INCLUDES .html
91 # ----------------------------------------------------------------------------------
92 # Run server-side XUL through xmlent to load the correct XML entities
93 # ----------------------------------------------------------------------------------
94 <LocationMatch /xul/.*\.xul$>
96 XMLEntContentType "application/vnd.mozilla.xul+xml"
97 AddOutputFilter INCLUDES;XMLENT .xul
101 # ----------------------------------------------------------------------------------
103 # ----------------------------------------------------------------------------------
104 <Location /opac/extras/oisbn>
105 SetHandler perl-script
106 PerlHandler OpenILS::WWW::SuperCat::oisbn
111 <Location /opac/extras/supercat>
112 SetHandler perl-script
113 PerlHandler OpenILS::WWW::SuperCat::supercat
118 <Location /opac/extras/unapi>
119 SetHandler perl-script
120 PerlHandler OpenILS::WWW::SuperCat::unapi
125 <Location /opac/extras/feed/bookbag>
126 SetHandler perl-script
127 PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
132 <Location /opac/extras/opensearch>
133 SetHandler perl-script
134 PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
139 <Location /opac/extras/feed/freshmeat>
140 SetHandler perl-script
141 PerlHandler OpenILS::WWW::SuperCat::changes_feed
146 <Location /opac/extras/browse>
147 SetHandler perl-script
148 PerlHandler OpenILS::WWW::SuperCat::string_browse
154 # ----------------------------------------------------------------------------------
155 # Module for processing staff-client offline scripts lives here
156 # ----------------------------------------------------------------------------------
157 <Directory "/openils/var/cgi-bin/offline">
158 AddHandler cgi-script .pl
165 # ----------------------------------------------------------------------------------
166 # OpenSRF JSON gateway
167 # ----------------------------------------------------------------------------------
169 SetHandler osrf_json_gateway_module
174 # ----------------------------------------------------------------------------------
175 # Reporting output lives here
176 # ----------------------------------------------------------------------------------
177 <Location /reporter/>
178 SetHandler perl-script
179 PerlHandler OpenILS::Reporter::Proxy
185 # ----------------------------------------------------------------------------------
187 # ----------------------------------------------------------------------------------
188 <LocationMatch /reports/>
190 AddOutputFilter INCLUDES .xhtml
193 # ----------------------------------------------------------------------------------
195 # ----------------------------------------------------------------------------------
197 SetHandler perl-script
198 PerlHandler OpenILS::WWW::XMLRPCGateway
205 # ----------------------------------------------------------------------------------
206 # Django admin interface (experimental)
207 # - requires mod_python and django
208 # - requires a symlink from WEBROOT/media to
209 # /usr/lib/python2.4/site-packages/django/contrib/admin/media/ (or similar)
210 # ----------------------------------------------------------------------------------
211 #<Location /ils_setup/>
214 # Allow from 10.0.0.0/8
215 # SetHandler mod_python
216 # PythonHandler django.core.handlers.modpython
217 # SetEnv DJANGO_SETTINGS_MODULE ils_admin.settings
219 # PythonPath "['/openils/var/admin/', '/usr/lib/python2.4/site-packages/'] +sys.path"
220 # PythonAutoReload On