Skip to content

Commit d36dc20

Browse files
committed
Improvements controller-config inline comments
1 parent 629a4db commit d36dc20

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
<!--
32
++ Base configuration for eXist's URL rewriting. This file defines
43
++ all basic path mappings. A path can be mapped to a servlet or
54
++ the root of a directory or collection hierarchy.
6-
7-
$Id$
5+
++
6+
++ The order of elements within this configuration file is significant.
87
-->
98
<configuration xmlns="http://exist.sourceforge.net/NS/exist" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
109
xsi:schemaLocation="http://exist.sourceforge.net/NS/exist file:../../schema/controller-config.xsd">
@@ -24,28 +23,30 @@
2423
<!-- RESTXQ -->
2524
<forward pattern="/restxq/" servlet="RestXqServlet"/>
2625

27-
<!-- scale images on the fly and cache the output. -->
26+
<!-- Scale images on the fly and cache the output. -->
2827
<!--
2928
<forward pattern="/images" servlet="ScaleImageJAI"/>
3029
-->
3130

3231
<!-- The JMX status servlet used to monitor the db -->
3332
<forward pattern="/status" servlet="JMXServlet"/>
3433

35-
<!--
36-
++ Default configuration: main web application is served from the
37-
++ webapp directory.
38-
-->
34+
<!-- HTTP requests to /apps are mapped onto the database path /db/apps -->
3935
<root pattern="/apps" path="xmldb:exist:///db/apps"/>
4036

37+
<!--
38+
++ The default fallback web application is served from the
39+
++ /etc/webapp directory on the filesystem.
40+
-->
41+
42+
<root pattern=".*" path="/"/>
43+
4144
<!--
4245
++ To redirect requests based on the server name (i.e. www.example.com)
43-
++ to a specific collection within the database, comment out the following
46+
++ to a specific collection within the database, comment out the previous
4447
++ root line and uncomment the block below with the server-name
4548
++ attribute.
4649
-->
47-
<root pattern=".*" path="/"/>
48-
4950

5051
<!--
5152
<root server-name="site1.example.com" pattern="/*" path="xmldb:exist:///db/org/site1/"/>
@@ -56,18 +57,20 @@
5657
-->
5758

5859
<!--
59-
++ The following configuration assumes that the main webapp
60-
++ is stored in the database. However, the contents of the /webapp directory
61-
++ should still be accessible with a /fs prefix in the path.
60+
++ The following alternative configuration assumes that the main webapp
61+
++ is stored in the database. However, the contents of the /etc/webapp directory
62+
++ will still be accessible with a /fs prefix in the path.
63+
-->
64+
<!--
65+
<root pattern="/fs" path="/"/>
66+
<root pattern=".*" path="xmldb:exist:///db/www"/>
6267
-->
63-
<!--root pattern="/fs" path="/"/>
64-
<root pattern=".*" path="xmldb:exist:///db/www"/-->
6568

6669
<!--
67-
++ Order is important here: the forward rule for XQuery resources has
68-
++ to be last in this document, otherwise all XQuery files would be immediately
69-
++ forwarded to the XQueryServlet without ever going through any of the
70-
++ controllers.
70+
++ Order is important. The following forward rule for XQuery resources has
71+
++ to be last in this document. Otherwise, all XQuery files would be immediately
72+
++ forwarded to the XQueryServlet without ever going through controllers.
7173
-->
7274
<forward pattern=".*\.(xq|xql|xqy|xquery)$" servlet="XQueryServlet"/>
75+
7376
</configuration>

0 commit comments

Comments
 (0)