The Host ElementA Host element represents a virtual host configuration. It is a container for web applications with a specified DNS hostname. The child elements supported by the embedded service include Alias, Logger, DefaultContext, Valve, and Listener. The supported attributes include the following:
The Alias element is an optional child element of the Host element. Each Alias element's content specifies an alternate DNS name for the enclosing Host. You can find additional information on the Host element in the Tomcat documentation at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html. The DefaultContext ElementThe DefaultContext element is a configuration template for web application contexts. It can be defined at the Engine or Host level. The child elements supported by the embedded service include WrapperLifecycle, InstanceListener, WrapperListener, and Manager. The supported attributes include the following:
The Logger ElementThe Logger element specifies a logging configuration for the Tomcat instance. The supported attributes include the following:
The Valve ElementThe Valve element configures a hook into the request-processing pipeline for the web container. The Valve element must implement the org.apache.catalina.Valve interface. There is only one required configuration attribute, className, which is the fully qualified classname of the org.apache.catalina.Valve interface implementation. The most commonly used Valve element is AccessLogValve, which keeps a standard HTTP access log of incoming requests. The className for the access log value is org.jboss.web.catalina.valves.AccessLogValue. The additional Valve attributes that it supports include the following:
You can find additional information on the Valve element and the available valve implementations in the Tomcat documentation at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html. |