Changes

Jump to navigation Jump to search
410 bytes added ,  15:46, 12 November 2019
* Run one of the {{Code|basexhttp}} or {{Code|basexhttp.bat}} scripts. Call the script with the {{Code|stop}} keyword to gracefully shut down the server.
* If you have installed BaseX on ''Windows'', click on the '''BaseX HTTP Server(Start)''' icon.
Various [[Command-Line_Options#HTTP Server|command-line options]] are available to simplify batch processing. The [[Start_Scripts|start script]] can be adjusted for individual purposed purposes (e.g. if the default memory limit is too restrictive).
An instance of the [https://www.eclipse.org/jetty/ Jetty Web Server] will be started, which by default listens to the port {{Code|8984}}. Additionally, the BaseX [[Database Server]] will be started, accessible on port {{Code|1984}}. The command-line output will look something like that (the JSP warning message [http://stackoverflow.com/questions/3521654/missing-jsp-support-in-jetty-or-confusing-log-message can be ignored]):
<pre class="brush:xml">
...
Server was started (port: 1984).
HTTP Server was started (port: 808984).
HTTP STOP Server was started (port: 8985).
</pre>
You After startup, you can adjust the access an HTML welcome page via http://localhost:8984. The Jetty logging level can be adjusted by adding the following properties to the start script:
<pre class="brush:xml">
-Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog -D{classref}.LEVEL=DEBUG
</pre>
 
After that, you can e. g. open your browser and navigate to the RESTXQ start page http://localhost:8984.
BaseX can also be deployed as web servlet in a servlet container or with Maven:
=Configuration=
Initial database options Unless BaseX is deployed as servlet, the location of the web application directory can be adjusted via the {{Option|WEBPATH}} option, and compression of HTTP responses can be specified in enabled via the {{CodeOption|web.xmlGZIP}} fileoption. They need to  Further database options can be defined as context parameters and prefixed with in the {{Code|org.basexweb.xml}}file. The most important options for the web application context are as follows:
{| class="wikitable"
|}
All options are prefixed with {{Code|org.basex.}}. Local file paths in options may be absolute or relative. If a relative path is specified, its root will be the servlet servlet’s ({{Code|webapp}}) path:
<pre class="brush:xml">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu