Installing and configuring mod_jk in JBossDownload latest mod_jk (binary or source) from: http://tomcat.apache.org/connectors-doc/
Save it as: <apache-dir>/modules/mod_jk.so
Include its configuration file in <apache-dir>/conf/httpd.conf: Include conf/jk.conf
Before you even get to installing mod_jk, download and install Apache HTTPD fromhttp://httpd.apache.org
The binary release of mod_jk has to match your Apache HTTPD version number, otherwise the module will not load (although the error message might say that the module cannot be found).
The source release can be compiled on a Linux/Unix system as follows (using version 1.2.15 as an example):
tar -zxvf tomcat-connectors-1.2.30-src.tar.gz
sudo make install
Define a JBoss AS instance in <apache-dir>/conf/workers.properties:
Status worker useful for debugging
The syntax of workers.properties file is: worker.<worker name>.<directive>=<value>.
Special directive worker.list exports all declared workers for use in the Apache HTTPD (next).
For more info on this file, please see http://tomcat.apache.org/connectors-doc/reference/workers.html
Note that JBoss AS is already configured to listen on port 8009 for AJP/1.3 requests.
LoadModule jk_module <path_to_modules>/mod_jk.so
JkMount /jmx-console jboss1
JkMount /jmx-console/* jboss1
JkMount /jkstatus jkstatus
Don’t forget to include this file in httpd.conf
Restart Apache HTTPD
Verify that you can access on port 80: http://localhost/jmx-console/
Workers jboss1 and jkstatus come from workers.properties file, because they were exported by worker.list directive.
At TekSlate, we offer resources that help you in learning various IT courses.
We avail both written material and demo video tutorials.
To gain in-depth knowledge and be on par with practical experience,
then explore JBOSS Training Videos.
Use <apache-dir>/bin/httpd -t to test the syntax of Apache HTTP’s configuration files (including any included files).
For more info on mod_jk configuration options, please seehttp://tomcat.apache.org/connectors-doc/
Note that you can also JkMount in URL-contexts like <Virtualhost> and <Location>. For example, you can replace JkMount /jkstatus jkstatus with:
Deny from all
Allow from 127.0.0.1
For indepth understanding on JBoss click on: