-
Notifications
You must be signed in to change notification settings - Fork 3
/
server.xml.tmpl
78 lines (67 loc) · 2.81 KB
/
server.xml.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!--
Configures the stand-alone server: the stand-alone server is a minimal
webserver with just three services enabled by default:
webdav, xmlrpc, rest.
$Id$
-->
<server xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schema/server.xsd">
<!-- default http listener -->
<listener protocol="http" port="8088"/>
<!-- https listener
To use the default SSL provider you may also need to add the the jars below,
which is a merge of the jsse, jnet and jcert jars from the JSSE package
$EXIST_HOME/lib/user/jnet.jar (not required for JDK 1.4.1)
$EXIST_HOME/lib/user/jcert.jar
$EXIST_HOME/lib/user/jsse.jar
A demo keystore may be built by running $EXIST_HOME/build.sh jetty-keygen
this creates the file $EXIST_HOME/tools/jetty/etc/demokeystore
To create a custom keystore see $EXIST_HOME/build/scripts/jarsigner.xml
-->
<!--
<listener protocol="https" port="8488">
<param name="keystore" value="tools/jetty/etc/demokeystore"/>
</listener>
-->
<!--
Enable the WebDAV, XML-RPC and REST services.
The context attribute specifies to which context path
the service will be mapped. Specify an url-pattern as
for a servlet-mapping. Example: /xmlrpc/* forwards all
paths beginning with /xmlrpc to the xmlrpc service.
-->
<webdav enabled="yes" context="/webdav/*"/>
<xmlrpc enabled="yes" context="/xmlrpc/*"/>
<rest enabled="yes" context="/*">
<!--
Special params: set form-encoding and container-encoding. If they
are set to different encodings, eXist may need to recode form parameters.
-->
<param name="form-encoding" value="UTF-8"/>
<param name="container-encoding" value="UTF-8"/>
</rest>
<servlet enabled="no"
context="/atom/*"
class="org.exist.atom.http.AtomServlet"/>
<!--
Define Server Filters
-->
<filter enabled="no" path="/*" class="uk.gov.devonline.www.xforms.XFormsFilter"/>
<filter enabled="no" path="/*" class="org.exist.http.urlrewrite.XQueryURLRewrite">
<param name="config" value="xmldb:exist:///db/controller-config.xml"/>
</filter>
<!--
Define URL forwardings
-->
<forwarding>
<!--
Define a forwarding for requests to the server root, i.e.
if you access the server without specifying a path.
-->
<!--root destination="/db/admin/admin.xql"/-->
<!--
Other forwardings: all requests to the specified path
will be forwarded to the destination.
-->
<forward path="/admin" destination="/db/admin/admin.xql"/>
</forwarding>
</server>