Server Configuration

Official documentation

Consult the Apache Tomcat 7 documentation for details on how to configure your server.

Sample configuration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<Server>
  <Service name="MPI-1">
 
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8" />
 
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" URIEncoding="UTF-8" />
 
    <Engine defaultHost="localhost" name="MPI-1">
      <Host name="localhost">
        <!-- Write an access log -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" pattern="common" />
      </Host>
    </Engine>
  </Service>
</Server>