Questo contenuto non è disponibile nella lingua selezionata.
2.6.6. Configuring the Environment
- remove SSL (refer to Procedure 2.18, “Removing SSL”);
- add log4j logging (refer to Procedure 2.19, “Removing log4j From Tomcat 6”);
- enable mod_jk or mod_cluster (refer to Procedure 2.20, “Configuring mod_jk” and Procedure 2.21, “Configuring mod_cluster”)
Procedure 2.18. Removing SSL
- At the shell prompt, become the root user.
- Run the respective uninstall command:
- on Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 5:
yum remove mod_ssl
# yum remove mod_ssl
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
For tomcat6, the log4j support is provided by the tomcat6-log4j package and is enabled on package installation (refer to Procedure 2.16, “Installing Enterprise Web Server from RPM Packages”).
Procedure 2.19. Removing log4j From Tomcat 6
- At the shell prompt, become the root user.
- Run the respective uninstall command:
- on Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 5:
yum remove tomcat6-log4j
# yum remove tomcat6-log4j
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 2.20. Configuring mod_jk
- Install the template
mod_jk
configuration file:cp /usr/share/doc/mod_jk-ap22-*/mod_jk.conf.sample /etc/httpd/conf.d/mod_jk.conf
# cp /usr/share/doc/mod_jk-ap22-*/mod_jk.conf.sample /etc/httpd/conf.d/mod_jk.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Install the template
workers.properties
file:cp /usr/share/doc/mod_jk-ap22-*/workers.properties.sample /etc/httpd/conf/workers.properties
# cp /usr/share/doc/mod_jk-ap22-*/workers.properties.sample /etc/httpd/conf/workers.properties
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add worker mappings to
workers.properties
. For example:Mount the Servlet context to the ajp20 worker
# Mount the Servlet context to the ajp20 worker /jmx-console=loadbalancer /jmx-console/*=loadbalancer /web-console=loadbalancer /web-console/*=loadbalancer
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
The default configuration is adequate for low-traffic web sites. For optimization information for moderate and high-load web sites, refer to http://kbase.redhat.com/faq/docs/DOC-15836.
Procedure 2.21. Configuring mod_cluster
- In the
/etc/httpd/conf/httpd.conf
file, add the hash (#
) sign at the beginning of the following line to disable mod_proxy_balancer.so:This module is incompatible with the JBoss HTTP Connector.LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure the server to load the JBoss HTTP Connector modules:
- Create the file
/etc/httpd/conf.d/JBoss_HTTP.conf
. - Add the following lines to the
JBoss_HTTP.conf
file:LoadModule slotmem_module modules/httpd/modules/mod_slotmem.so LoadModule manager_module modules/mod_manager.so LoadModule proxy_cluster_module modules/mod_proxy_cluster.so LoadModule advertise_module modules/mod_advertise.so
LoadModule slotmem_module modules/httpd/modules/mod_slotmem.so LoadModule manager_module modules/mod_manager.so LoadModule proxy_cluster_module modules/mod_proxy_cluster.so LoadModule advertise_module modules/mod_advertise.so
Copy to Clipboard Copied! Toggle word wrap Toggle overflow