]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/examples/oils_web.xml.example
make better use of media_prefix; only apply ses cookie in secure context; updated...
[Evergreen.git] / Open-ILS / examples / oils_web.xml.example
1 <oils_web>
2
3     <!-- This should match the Apache Directory/Location[Match] configuration path -->
4     <base_path>/eg</base_path>
5
6     <web_dir>/openils/var/web</web_dir>
7
8     <!-- when locating files that don't have explicit handlers defined, assume the
9         files have the following filename extension -->
10     <default_template_extension>tt2</default_template_extension>
11
12     <!-- Media Prefix.  Allows static files to be served from an alternate domain/server
13
14             Examples:
15
16                 # local URL path
17                 <media_prefix>/media</media_prefix> 
18
19                 # server w/ path.  
20                 <media_prefix>static.example.com/media</media_prefix> 
21
22                 ===
23                 In the first 2 examples, the request protocol (http vs https) will
24                 match the protocol of the current page
25                 ===
26
27                 # full-qualified with static protocol
28                 <media_prefix>http://static.example.com/media</media_prefix> 
29      -->
30     <media_prefix/>
31
32     <!-- If set to true, all output will be parsed as XML before delivery to the client.  
33         If XML parsing fails, the error message, with HTML included, will be output as text/plain.
34         XML parsing adds overhead, so this should only be used for debugging -->
35     <force_valid_xml>false</force_valid_xml>
36
37     <!-- Turn on template-toolkit debugging, which reports on undefined blocks, macros, etc. -->
38     <debug_template>false</debug_template>
39
40     <!-- Where templates can be found.  Paths will be checked in the order entered here.
41          It's possible to override individual or sets of templates by putting them into
42          a path in front of the default template path -->
43     <template_paths>
44         <!-- XXX we should really move these out of the default web root -->
45         <path>/openils/var/web/templates</path>
46     </template_paths>
47
48     <handlers>
49         <!-- add custom handlers here.  These are for templates that live in non-obvious locations.  
50             In other words, if the path + default extension does not map directly to a template file -->
51         <handler path='acq/fund/list' template='acq/financial/list_funds.tt2'/>
52         <handler path='acq/fund/view' template='acq/financial/view_fund.tt2'/>
53         <handler path='acq/funding_source/list' template='acq/financial/list_funding_sources.tt2'/>
54         <handler path='acq/funding_source/view' template='acq/financial/view_funding_source.tt2'/>
55         <handler path='acq/currency_type/list' template='acq/financial/list_currency_types.tt2'/>
56         <handler path='acq/currency_type/view' template='acq/financial/view_currency_type.tt2'/>
57         <handler path='acq/provider/list' template='acq/financial/list_providers.tt2'/>
58         <handler path='acq/provider/view' template='acq/financial/view_provider.tt2'/>
59         <handler path='vandelay/vandelay' template='vandelay/vandelay.tt2' as_xml='true'/>
60     </handlers>
61 </oils_web>