> ## Documentation Index
> Fetch the complete documentation index at: https://kb.mochahost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# JSP/Servlet processing

You need to **define what hosts you want to be handled** by Tomcat application service. To do that select a domain from the drop-down box located in **"Map a domain to private JVM"**.

This will create a definition inside server.xml and will deploy a default application WAR.

For each domain name docBase Directory is located at:\
/home/username/jvm/apache-tomcat-xx/domains/

If you want your application to work at [http://domain.name](http://domain.name) you have to rename your .war to ROOT.war and then deploy it.

Now you are ready to start the application server. All you need to do is just **hit the start button**.

And finally you need to **redirect all traffic from Apache Web serve**r for that domain to be handled by Tomcat application. To do that - navigate to **"Mapped Domains"** section and click on **Enable/Disable check box**.
