=Servlet Container=
In order to deploy BaseX HTTP Services in a servlet container, one needs you need to download the WAR distribution of BaseX from the [http://basex.org/products/download/all-downloads download site]. The downloaded WAR file can then be then deployed following the instructions of the corresponding servlet container ([http://docs.codehaus.org/display/JETTY/WebAppDeployer jetty], [http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html tomcat]).
==Servlet Container Configuration==
Configuring port, context path, etc. can be done following the corresponding instructions of the used servlet container. This is needed if you want to replace the default URL path (e.g. http://localhost:8080/rest instead of ) with a custom one (e.g. http://localhost:8080/BaseX711/rest ) is not desired.
==Database Access==
There are two ways in which the BaseX web application can access databases:
* either a dedicated [[Startup#BaseX_Server|database server]] should can be manually started,
* or the web application will access and store data on the local file system.
The operation mode can be configured as explained further below.