Hostelement represents a virtual host on the Engine. It allows you to associate a network name with the server, that is, to change the domains or the hostname of the Server.
Enginecan contain multiple virtual hosts, that is the Engine element can have several
Hostelements nested. The Host element can contain
Contextelements for individual web applications associated with the virtual host. Exactly one of the Hosts in every Engine must have a name matching the defaultHost attribute of the Engine.
Hostelement can contain multiple
Aliaselements to allow the virtual host to use multiple hostnames (refer to Section 126.96.36.199, “Defining Host Name Aliases”).
Hostelement can contain at most one
Realmelement in a Host represents a database of users and their roles used by the virtual host. If the
Realmelement is nested in the
Hostelement, the user information is shared across all Contexts nested inside the Host unless overridden by another
Realmelement defined for a child
Table 4.6. Host Element Attributes
Application Base directory for the virtual host
The Application Base directory is the pathname of a directory that contains web applications to be deployed on the virtual host. The property value can be defined as an absolute path to the directory or a path relative to the $JBOSS_SERVER_HOME directory.
automatic deployment of web applications dropped in the Application Base directory while the JBoss Web server is running (
Note that the default deployment directory is
delay between the invocation of the
If set to a positive value, the Host produces a thread. The thread waits for the specified amount of time and then invokes the
Context containers can also define the backgroundProcessorDelay attribute. If the delay of a child Context is not negative, the Context uses its own processing thread.
class implementing the Host
The defined class must implement the org.apache.catalina.Host interface. If no class is specified, the standard implementation is used, that is,
automatic deployment of web applications from the Host (
network name of the virtual host as registered in your Domain Name Service server
One of the Hosts nested in the Engine must have a name that matches the defaultHost setting for the parent Engine.
Table 4.7. Additional Element Attributes of the Standard Host Element Implementation (org.apache.catalina.core.StandardHost)
If set to
class implementing the error reporting valve used by the Host
The defined class must implement the org.apache.catalina.Valve interface. If no class is specified, the
The valve defines the output error reports. This property allows you to customize the look of the error pages generated by JBoss Web.
automatic unpacking of deployer WAR files (
If set to
pathname to a scratch directory used by applications on the Host (if not specified, a suitable directory under
Each application has its own sub-directory with temporary read-write use. The directory can be made visible for servlets in the web application using the javax.servlet.context.tempdir servlet context attribute of type
If a child Context defines the workDir property, the Host's workDir is overridden.
188.8.131.52. Defining Host Name Aliases
Aliaselement to define such network name resolution.
<Host name="www.company.com" ...> ... <Alias>company.com</Alias> ... </Host>