If run on a Jetty server you may use a {{Code|jetty.xml}} file for detailed server configuration. You can e.g. enable SSL connections or Jetty logging. Place the {{Code|jetty.xml}} right next to the {{Code|web.xml}}. For detailed configuration refer to the [http://wiki.eclipse.org/Jetty/Reference/jetty.xml Jetty Documentation]. A sample [https://github.com/BaseXdb/basex-api/blob/master/src/main/webapp/WEB-INF/jetty.xml jetty.xml] is placed in the basex-api package.
==Database Access==
The following two modes exists to run the BaseX Web Application:
* '''Server Mode''': the web application will start a [[Startup#BaseX_Server|database server]]. This server can then also be addressed from other clients outside the web application.
* '''Local Mode''': the web application will communicate with a local database context.
By default, web applications use the ''Server Mode''. The operation mode can be configured as explained below.
==Configuration==
|[[Options#HTTPLOCAL|HTTPLOCAL]]
|{{Code|false}}
|{{Version|7.5:}} Operation mode. By default, the servlets will work in client/server mode, and a database server instance will be started along with the web server, which can also be addressed from other BaseX clients. If the flag is set to {{Code|falsetrue}}, all servlets will communicate with a local database context which is not accessible from outside.
|-
|[[Options#RESTXQPATH|RESTXQPATH]]