WebServer

1. Introduction

     XWorker inherits the Jetty server and can use Jetty to start a WEB server.

2. Server model

<?xml version='1.0' encoding='utf-8'?>

<JettyServer name="WebServer" descriptors="xworker.jetty.JettyServer" port="8080">
     <Handlers>
         <WebAppContext name="WebAppContext" contextPath="/" webApp="./" resourceBase="./" dirAllowed="true"/>
     </Handlers>
</JettyServer>

    The above XML is a WEB server model.

  • contextPath
    Is the context path of the URL address. For example, contextPath=test, then the URL can be https://localhost:8080/test/.
      
  • webApp
    The path of the WEB application can be a directory or a war file.
      
  • resourceBase
    The path to the static resource file.

    Multiple applications can be set up by adding a WebAppContext node.

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号