Download 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): wget http://www.devlib.org/apache/tomcat/tomcat-connectors/jk/source/jk-1.2.30/tomcat-connectors-1.2.30-src.tar.gz tar -zxvf tomcat-connectors-1.2.30-src.tar.gz cd tomcat-connectors-1.2.30-src/native ./configure --with-apxs=/path/to/apache2/bin/apxs make sudo make install Configuring mod_jk Define a JBoss AS instance in <apache-dir>/conf/workers.properties:
To enrich your career and become a JBoss professional, visit Tekslate, the global online training platform:" JBoss Training". This course will help you achieve excellence in this field.
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. Create <apache-dir>/conf/jk.conf: 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.
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: <Location /jkstatus/> JkMount jkstatus Order deny,allow Deny from all Allow from 127.0.0.1 </Location>
For an in-depth understanding on JBoss click on:
You liked the article?
Like : 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.
Get stories of change makers and innovators from the startup ecosystem in your inbox