]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/apache/eg_vhost.conf
configuration support for the exporter service
[Evergreen.git] / Open-ILS / examples / apache / eg_vhost.conf
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 # ----------------------------------------------------------------------------------
5
6
7 # ----------------------------------------------------------------------------------
8 # Point / to the opac
9 # ----------------------------------------------------------------------------------
10 RedirectMatch 301 ^/$ /opac/en-US/skin/default/xml/index.xml
11
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
17
18
19
20 # ----------------------------------------------------------------------------------
21 # Configure the gateway
22 # ----------------------------------------------------------------------------------
23 OSRFGatewayConfig /openils/conf/opensrf_core.xml
24
25
26 # ----------------------------------------------------------------------------------
27 # Set up the book jackets URL
28 # XXX This pulls images from Amazon, don't use this in a production environment
29 # ----------------------------------------------------------------------------------
30 RewriteEngine on
31 ProxyTimeout 2
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]
36
37
38
39 # ----------------------------------------------------------------------------------
40 # Added content plugin
41 # ----------------------------------------------------------------------------------
42 <Location /opac/extras/ac/>
43     SetHandler perl-script
44     PerlHandler OpenILS::WWW::AddedContent
45     Options +ExecCGI
46     PerlSendHeader On
47     allow from all
48 </Location>
49
50         
51 # ----------------------------------------------------------------------------------
52 # Configure the OPAC
53 # ----------------------------------------------------------------------------------
54 <LocationMatch /opac/>
55     AddType application/xhtml+xml .xml
56    
57     # - configure mod_xmlent
58     XMLEntStripPI "yes"
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" 
64
65     # - set up the include handlers
66     Options +Includes
67     AddOutputFilter INCLUDES .xsl
68     AddOutputFilter INCLUDES;XMLENT .xml
69                     
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/
74     
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/
81
82 </LocationMatch>
83
84
85 # ----------------------------------------------------------------------------------
86 # Force SSL on the OPAC's "My Account" page
87 # ----------------------------------------------------------------------------------
88 <LocationMatch .*/myopac.xml>
89     SSLRequireSSL
90 </LocationMatch>
91
92 <LocationMatch /opac/extras/>
93     AddType application/xhtml+xml .xml
94 </LocationMatch>
95
96 <LocationMatch /opac/.*/extras/slimpac/>
97     AddOutputFilter INCLUDES;XMLENT .html
98 </LocationMatch>
99         
100 # ----------------------------------------------------------------------------------
101 # Run server-side XUL through xmlent to load the correct XML entities
102 # ----------------------------------------------------------------------------------
103 <LocationMatch /xul/.*\.xul$>
104     Options +Includes
105     XMLEntContentType "application/vnd.mozilla.xul+xml"
106     AddOutputFilter INCLUDES;XMLENT .xul
107     allow from all
108 </LocationMatch>
109
110 # ----------------------------------------------------------------------------------
111 # Supercat feeds
112 # ----------------------------------------------------------------------------------
113 <Location /opac/extras/oisbn>
114     SetHandler perl-script
115     PerlHandler OpenILS::WWW::SuperCat::oisbn
116     Options +ExecCGI
117     PerlSendHeader On
118     allow from all
119 </Location>
120 <Location /opac/extras/supercat>
121     SetHandler perl-script
122     PerlHandler OpenILS::WWW::SuperCat::supercat
123     Options +ExecCGI
124     PerlSendHeader On
125     allow from all
126 </Location>
127 <Location /opac/extras/unapi>
128     SetHandler perl-script
129     PerlHandler OpenILS::WWW::SuperCat::unapi
130     Options +ExecCGI
131     PerlSendHeader On
132     allow from all
133 </Location>
134 <Location /opac/extras/feed/bookbag>
135     SetHandler perl-script
136     PerlHandler OpenILS::WWW::SuperCat::bookbag_feed
137     Options +ExecCGI
138     PerlSendHeader On
139     allow from all
140 </Location>
141 <Location /opac/extras/opensearch>
142     SetHandler perl-script
143     PerlHandler OpenILS::WWW::SuperCat::opensearch_feed
144     Options +ExecCGI
145     PerlSendHeader On
146     allow from all
147 </Location>
148 <Location /opac/extras/feed/freshmeat>
149     SetHandler perl-script
150     PerlHandler OpenILS::WWW::SuperCat::changes_feed
151     Options +ExecCGI
152     PerlSendHeader On
153     allow from all
154 </Location>
155 <Location /opac/extras/browse>
156     SetHandler perl-script
157     PerlHandler OpenILS::WWW::SuperCat::string_browse
158     Options +ExecCGI
159     PerlSendHeader On
160     allow from all
161 </Location>     
162         
163 # ----------------------------------------------------------------------------------
164 # Module for processing staff-client offline scripts lives here
165 # ----------------------------------------------------------------------------------
166 <Directory "/openils/var/cgi-bin/offline">
167     AddHandler cgi-script .pl
168     AllowOverride None
169     Options +ExecCGI
170     allow from all
171 </Directory>
172         
173         
174 # ----------------------------------------------------------------------------------
175 # OpenSRF JSON gateway
176 # ----------------------------------------------------------------------------------
177 <Location /gateway>
178     SetHandler osrf_json_gateway_module
179     allow from all
180 </Location>
181
182         
183 # ----------------------------------------------------------------------------------
184 # The exporter lives here
185 # ----------------------------------------------------------------------------------
186 <Location /exporter>
187     SetHandler perl-script
188     PerlHandler OpenILS::WWW::Exporter
189     Options +ExecCGI
190     allow from all
191 </Location>
192
193 # ----------------------------------------------------------------------------------
194 # Reporting output lives here
195 # ----------------------------------------------------------------------------------
196 <Location /reporter/>
197     SetHandler perl-script
198     PerlHandler OpenILS::Reporter::Proxy
199     Options +ExecCGI
200     PerlSendHeader On
201     allow from all
202 </Location>
203
204 # ----------------------------------------------------------------------------------
205 # Reports GUI
206 # ----------------------------------------------------------------------------------
207 <LocationMatch /reports/>
208     Options +Includes
209     AddOutputFilter INCLUDES .xhtml
210 </LocationMatch>
211
212 # ----------------------------------------------------------------------------------
213 # XML-RPC gateway
214 # ----------------------------------------------------------------------------------
215 <Location /xml-rpc>
216     SetHandler perl-script
217     PerlHandler OpenILS::WWW::XMLRPCGateway
218     Options +ExecCGI
219     PerlSendHeader On
220     allow from all
221 </Location>
222
223
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/>
231 #   Order deny,allow
232 #   Deny from all
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
237 #   PythonDebug On
238 #   PythonPath "['/openils/var/admin/', '/usr/lib/python2.4/site-packages/'] +sys.path"
239 #   PythonAutoReload On
240 #</Location>
241
242