- <! -- Normally, users must authenticate themselves to each web app individually. uncomment the following entry if you wowould like a user to be authenticated the first time they encounter a resource protected by a security constraint, and then have that user identity maintained authentication SS * All * Web applications contained in this virtual host. -->
- <! -- <Valve classname = "org. Apache. Catalina. authenticator. singlesignon"/> -->
- <! -- Access log processes all requests for this virtual host. by default, log files are created in the "logs" directory relative to $ catalina_home. if you wish, you can specify a different directory with the "directory" attribute. specify either a relative (to $ catalina_home) or absolute path to the desired directory. -->
- <! -- <Valve classname = "org. apache. catalina. valves. accesslogvalve "directory =" logs "prefix =" localhost_access_log. "suffix = ". TXT "pattern =" common "resolvehosts =" false "/> -->
- <! -- Access log processes all requests for this virtual host. by default, log files are created in the "logs" directory relative to $ catalina_home. if you wish, you can specify a different directory with the "directory" attribute. specify either a relative (to $ catalina_home) or absolute path to the desired directory. this access log implementation is optimized for maximum performance, but is hardcoded to support only the "common" and "combined" patterns. -->
- <! -- <Valve classname = "org. apache. catalina. valves. fastcommonaccesslogvalve "directory =" logs "prefix =" localhost_access_log. "suffix = ". TXT "pattern =" common "resolvehosts =" false "/> -->
- </Host>
- </Engine>
- </Service>
- </Server>
For tomcat, you can copy multiple copies for testing, modify server. XML, and add multiple instances for running. However, we recommend that you copy multiple copies for more intuitive viewing.
Modify the Tomcat context. xml file to enable global session replication.
<Context distributable = "true">