==Configuring Database Access==
The following All database options are available to configure the way the databases are accessed. These can be set specified in the {{Code|web.xml}} file or as by prefixing the key with {{Code|org.basex.}}.The [[Options#HTTP Options|database optionsHTTP Options]].are particularly relevant in the web application context:
{| class="wikitable"
|-
! Description
|-
|{{Code[[Options#HTTPLOCAL|org.basex.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. If set to {{Code|false}}, all servlets will communicate with a local database context which is not accessible from outside.
|-
|{{Code[[Options#RESTXQPATH|org.basex.restxqpath}}RESTXQPATH]]
|
|{{Version|7.5:}} [[RESTXQ]] directory. By default, all RESTXQ modules are located in the standard web application directory.
|-
|{{Code[[Options#USER|org.basex.user}}USER]]
| -
| User name. By default, the {{@code|admin}} user is specified. If no user is specified, the credentials must be passed on by the client. Please check by yourself if it is safe to store your credentials in plain text.
|-
|{{Code[[Options#USER|org.basex.password}}PASSWORD]]
| -
| Login data. By default, the {{@code|admin}} password is specified. If no password is specified, it must be passed on by the client. Please check by yourself if it is safe to store your credentials in plain text.
|-
|{{Code|org.basex.mode}} (''obsolete'')
|{{Code|local}}
|Operation mode ({{Code|local}}/{{Code|server}}). With {{Version|7.5}}, this option has been replaced with {{Code|org.basex.httplocal}}.
|}
Additionally, all database main options, which are usually stored in the {{Code|.basex}} configuration file ({{Code|DBPATH}}, {{Code|REPOPATH}}, etc.), can be specified as well by prefixing the key with {{Code|org.basex.}}. If an option references a relative path, it its root will be prefixed with the servlet root ({{@Code|webapp}}) path. Some examples follow:
<pre class="brush:xml">
<context-param>
<!-- will be kept as is -->
<param-value>f:/basex/repository</param-value>
</context-param>
<context-param>
<param-name>org.basex.lang</param-name>
<param-value>English</param-value>
</context-param>
</pre>