Skip to content

Commit 780ca2c

Browse files
authored
Merge pull request #130 from clickr/modify-root-url-instructions
Modify root url instructions
2 parents e9b26e9 + 3c6624b commit 780ca2c

File tree

2 files changed

+43
-11
lines changed

2 files changed

+43
-11
lines changed

data/deployment.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@
123123
<para>The standard distribution does by default launch eXist-db as a web application
124124
deployed in a servlet container (if you start eXist via <filename>bin/startup.sh</filename> or <filename>bin\startup.bat</filename>). The
125125
container used is <ulink url="http://jetty.mortbay.org/">Jetty</ulink>.</para>
126-
<para>The Jetty configuration can be found in <filename>tools/jetty/etc/jetty.xml</filename>.
127-
It defines a single web application context <command>/exist</command>, mapped to the
128-
<filename>webapp</filename> directory.</para>
126+
<para>The Jetty configuration can be found in <filename>tools/jetty/webapps/exist-webapp-context.xml</filename>.
127+
It defines a single web application context value <command>&lt;Set name="contextPath"&gt;/exist&lt;/Set&gt;</command>, mapped to the
128+
<filename>webapp</filename> directory. This value can be set to either <command>/exist</command> or
129+
<command>/</command>.</para>
129130
<para>We think that Jetty is small, efficient and stable, so there's no need to switch
130131
to a different servlet engine unless your server setup requires this. However, it is
131132
not difficult to deploy eXist in a different servlet container, e.g. Apache's
@@ -667,4 +668,4 @@ public class TestDB {
667668
java -Dexist.initdb=true -Dexist.home=. TestDB</synopsis>
668669
</section>
669670
</chapter>
670-
</book>
671+
</book>

data/troubleshooting.xml

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,49 @@ Logging already initialized. Skipping...
123123
your system is using port 8080 or 8443, the default ports that eXist's embedded web server, Jetty, uses. To see whether this is the case, enter <ulink url="http://localhost:8080/">http://localhost:8080/</ulink> in your browser. If
124124
another service occupies this port, you cannot start up eXist-db unless you shut
125125
down the service in question or make eXist-db use another port. To make eXist-db use
126-
another port, open the file <filename moreinfo="none">/tools/jetty/etc/jetty.xml</filename> inside your eXist-db installation in a
126+
another port, open the file <filename moreinfo="none">/tools/jetty/etc/jetty-http.xml</filename> inside your eXist-db installation in a
127127
text or XML editor and change the value "8080" in</para>
128-
<synopsis format="linespecific">&lt;Set name="port"&gt;&lt;SystemProperty name="jetty.port" default="8080"/&gt;&lt;/Set&gt;</synopsis>
128+
<synopsis format="linespecific">
129+
&lt;Set name="port"&gt;
130+
&lt;Property name="jetty.http.port" deprecated="jetty.port"&gt;
131+
&lt;Default&gt;
132+
&lt;SystemProperty name="jetty.port" default="8080"/&gt;
133+
&lt;/Default&gt;
134+
&lt;/Property&gt;
135+
&lt;/Set&gt;
136+
</synopsis>
129137
<para>to a port that is not used, e.g. "8899":</para>
130-
<synopsis format="linespecific">&lt;Set name="port"&gt;&lt;SystemProperty name="jetty.port" default="8899"/&gt;&lt;/Set&gt;</synopsis>
138+
<synopsis format="linespecific">
139+
&lt;Set name="port"&gt;
140+
&lt;Property name="jetty.http.port" deprecated="jetty.port"&gt;
141+
&lt;Default&gt;
142+
&lt;SystemProperty name="jetty.port" default="8899"/&gt;
143+
&lt;/Default&gt;
144+
&lt;/Property&gt;
145+
&lt;/Set&gt;
146+
</synopsis>
131147
<para>eXist-db uses port 8443 for confidential communication. Another service may also
132-
be using this port. To make eXist-db use another port, open the file <filename moreinfo="none">/tools/jetty/etc/jetty.xml</filename> and change the value
148+
be using this port. To make eXist-db use another port, open the file <filename moreinfo="none">/tools/jetty/etc/jetty-ssl.xml</filename> and change the value
133149
"8443" in</para>
134-
<synopsis format="linespecific">&lt;Set name="confidentialPort"&gt;8443&lt;/Set&gt;</synopsis>
135-
<para>and</para>
136-
<synopsis format="linespecific">&lt;Set name="Port"&gt;8443&lt;/Set&gt;</synopsis>
150+
<synopsis format="linespecific">
151+
&lt;Set name="port"&gt;
152+
&lt;Property name="jetty.ssl.port" deprecated="ssl.port"&gt;
153+
&lt;Default&gt;
154+
&lt;SystemProperty name="jetty.ssl.port" deprecated="ssl.port" default="8443"/&gt;
155+
&lt;/Default&gt;
156+
&lt;/Property&gt;
157+
&lt;/Set&gt;
158+
</synopsis>
137159
<para>to a port that is not used, e.g. "8444".</para>
160+
<synopsis format="linespecific">
161+
&lt;Set name="port"&gt;
162+
&lt;Property name="jetty.ssl.port" deprecated="ssl.port"&gt;
163+
&lt;Default&gt;
164+
&lt;SystemProperty name="jetty.ssl.port" deprecated="ssl.port" default="8444"/&gt;
165+
&lt;/Default&gt;
166+
&lt;/Property&gt;
167+
&lt;/Set&gt;
168+
</synopsis>
138169
<para>If these scripts do not launch eXist-db, you can launch it by changing to the
139170
directory where you installed eXist-db and entering the following into the
140171
console:</para>

0 commit comments

Comments
 (0)