Questo contenuto non è disponibile nella lingua selezionata.
4.3. Configuring the JBoss Web Server Installation
Procedure 4.4. Running the Post-Installation Scripts
- Open a shell prompt, and change directory to
JWS_HOME/etc
. - Issue the following commands to run the post-installation scripts:
sh .postinstall.httpd sh .postinstall.tomcat
sh .postinstall.httpd sh .postinstall.tomcat
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The post-installation scripts create the Apache and Tomcat users and groups.
Procedure 4.5. Setting the JAVA_HOME
Environment Variable
JAVA_HOME
environment variable for Tomcat before running JBoss Web Server.
- Open the Tomcat configuration file:
- For Tomcat 7:
JWS_HOME/etc/sysconfig/tomcat7
- For Tomcat 8:
JWS_HOME/etc/sysconfig/tomcat8
- Remove the hash (#) sign at the beginning of the following line:
JAVA_HOME="/usr/java"
# JAVA_HOME="/usr/java"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 4.6. Removing/Re-Adding SSL Support
- Go to
JWS_HOME/etc/httpd/conf.d
and rename the SSL configuration file:- To remove SSL, rename
ssl.conf
tossl.conf.disabled
. - To re-add the SSL, rename
ssl.conf.disabled
tossl.conf
.
Procedure 4.7. Enabling log4j Logging for Tomcat
- Open a shell prompt and change directory to
JWS_HOME/share/extras/
. - Copy the
log4j-eap6.jar
,log4j.properties
, andtomcat-juli-adapters.jar
files to thelib
directory of the Tomcat directory.For example:extras]# cp log4j.properties ../tomcat<VERSION>/lib/
extras]# cp log4j.properties ../tomcat<VERSION>/lib/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow extras]# cp log4j-eap6.jar ../tomcat<VERSION>/lib/
extras]# cp log4j-eap6.jar ../tomcat<VERSION>/lib/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow extras]# cp tomcat-juli-adapters.jar ../tomcat<VERSION>/lib/
extras]# cp tomcat-juli-adapters.jar ../tomcat<VERSION>/lib/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace <VERSION> with the respective Tomcat version number (7
or8
). - Replace
tomcat-juli.jar
file in your Tomcatbin
directory with thetomcat-juli.jar
file fromJWS_HOME/share/extras/
:extras]# cp tomcat-juli.jar ../tomcat<VERSION>/bin/
extras]# cp tomcat-juli.jar ../tomcat<VERSION>/bin/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 4.8. Configuring mod_jk
Note
JWS_HOME/etc/httpd/conf.d/
. The sample configuration files are: mod_jk.conf.sample
, workers.properties.sample
, and uriworkermap.properties.sample
. To use these samples instead of creating your own configuration files, remove the .sample
extension, and modify their content as needed.
- In
JWS_HOME/etc/httpd/conf.d/
, create a file namedworkers.properties
.This file should contain the available workers (JBoss instances). - In
JWS_HOME/etc/httpd/conf.d/
, create a file namedmod_jk.conf
.This file contains general mod_jk configuration. - In
JWS_HOME/etc/httpd/conf.d/
, create a file nameduriworkermap.properties
.This file contains request mapping rules that map requests to workers.
Procedure 4.9. Configuring Apache HTTP Server to Use mod_cluster
- mod_cluster can be configured in
JWS_HOME/httpd/conf.d/mod_cluster.conf
.For more information about customizing mod_cluster, see the mod_cluster Connector section of the HTTP Connectors and Load Balancing Guide.