If the server is started as Servlet, the {{Mono|.basex}} configuration file will be stored in the root of the web directory. (usually {{Mono|src/main/webapp/}}). The .basex file contains all [[Options#Main Options|Main Options]], such as the path to the database, the HTTP directory and the [[Packaging|Package Repository]]. Initial configuration options can be adjusted in the {{Mono|src/main/webapp/WEB-INF/web.xml}} file.
=RESTXQ ModulesModule Declarations=
All RESTXQ modules can be accessed at {{Mono|http://localhost:8984/restxq/}}. Some instructions on how to write such a module follow: