The virtual-server element
Introduction
The virtual-server element represents a virtual host, which is an association of a network name for a server (such as "www.mycompany.com" with the particular server on which Catalina is running. In order to be effective, this name must be registered in the Domain Name Service (DNS) server that manages the Internet domain you belong to - contact your Network Administrator for more information.
In many cases, System Administrators wish to associate more than
one network name (such as www.mycompany.com and
company.com) with the same virtual host and applications.
This can be accomplished using the Host
Name Aliases feature discussed below.
One or more virtual-server elements are nested inside an subsystem=web element.
Attributes
Common Attributes
The virtual-server supports the following attributes:
Attribute Description nameName of the Virtual Host
aliasList of alias supported by the Virtual Host
access-logElement describing how the access log information should be logged.
rewriteElement describing what the rewrite valve should do with requests corresponding to the Virtual Host.
enable-welcome-rootWhether or not the bundled welcome directory is used as the root web context.
default-web-moduleWebapp to use as default applicationWhether or not the bundled welcome directory is used as the root web context. If not specified, a default of
ROOT.waris used.
Standard Implementation
virtual-server doesn't support more attributes that the ones listed above.
Nested Components
access-log
access-logdescribes how the access log information should be logged. It adds theAccessLogValveto the Virtual Host defined byvirtual-serverSee the AccessLogValve api documentation for more information.
Attribute Description relative-todirectory location based on the global path configuration in the domain model. If not specified, it defaults to the JBoss Application data directory (jboss.server.base.dir).
pathdirectory location based on the referenced path.
patternPatern used by the AccessLogValve. The paterns are described in the AccessLogValve api documentation. If not specified, a default of
commonis used.resolve-hostsTell the Valve to resolve or not the host names. If not specified, a default of
falseis used.extendedUsed the
ExtendedAccessLogValveinstead theAccessLogValveIf not specified, a default offalseis used.prefixDefine the prefix to use to name the log file. If not specified, a default of
access_log.is used.rotateTell the valve if it should rotate the ouput or not. If not specified, a default of
trueis used.
rewrite
rewritedescribes how requests should be rewritten before processing. It adds theRewriteValveto the Virtual Host defined byvirtual-serverSee URL Rewriting for more information.
Attribute Description conditionlist of
conditionElements. See condition below.patternPattern is a perl compatible regular expression, which is applied to the URL of the request.
substitutionThe substitution of a rewrite rule is the string which is substituted for (or replaces) the original URL which Pattern matched
flagsSubstitution options (See URL Rewriting for all the available options
condition
conditiondescribes a condition of the conditions list to apply the pattern substitution
Attribute Description testa test string is first evaluated, before being matched against the specified pattern
patternCondPattern is the condition pattern, a regular expression which is applied to the current instance of the test string
flagsMatching options AND/OR and NC
sso
ssodescribes how single sign on is processed. It adds aValveto the Virtual Host defined byvirtual-server
Attribute Description cache-containerName of the cache container to use for clusterised sso
cache-nameName of the cache to use for clusterised sso
domainCookie domain to use.
reauthenticateWhether each request should cause a reauthentication.



