Configure Mod_jk With Apache 2
-
Upload
sahad-sali -
Category
Documents
-
view
214 -
download
0
Transcript of Configure Mod_jk With Apache 2
-
8/14/2019 Configure Mod_jk With Apache 2
1/4
11/1/13 Configure mod_jk with Apache 2.2 in Ubuntu | TechNIX
www.technix.net.in/configure-mod_jk-with-apache-2-2-in-ubuntu/
TechNIX
ENTER INTO TECH WORLD
Home News How Tos Hacks Knowledge Base
Scripting
1. Install mod_jk: To install mod_jk in ubuntu execute the following
command on the command line.
sudo apt-get install libapache2-mod-jk
2. Enable mod_jk loading: Create a link in /etc/apache2/mods-
enabled/jk.load which points to /etc/apache2/mods-available/jk.load.
This will enable loading mod_jk module in apache when apache is
restarted.
3. Create mod_jk conf file: Create a mod_jk conf file and place it in
/etc/apache2/mods-available/jk.conf
# Where to find workers.properties
# Update this path to match your conf directory location
JkWorkersFile /etc /apache2/jk_workers.properties# Where to
put jk logs
# Update this path to match your logs directory location
JkLogFile /var/log/apache2/mod_jk.log# Set the jk log level
[debug/error/info]
JkLogLevel info# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y]
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -
ForwardDirectories
Configure mod_jk with Apache 2.2 in UbuntuAug15
http://www.technix.net.in/scripting/http://www.technix.net.in/http://www.technix.net.in/news/http://www.technix.net.in/how-tos/http://www.technix.net.in/hacks/http://www.technix.net.in/configure-mod_jk-with-apache-2-2-in-ubuntu/http://www.technix.net.in/scripting/http://www.technix.net.in/knowledge-base/http://www.technix.net.in/hacks/http://www.technix.net.in/how-tos/http://www.technix.net.in/news/http://www.technix.net.in/http://www.technix.net.in/ -
8/14/2019 Configure Mod_jk With Apache 2
2/4
11/1/13 Configure mod_jk with Apache 2.2 in Ubuntu | TechNIX
www.technix.net.in/configure-mod_jk-with-apache-2-2-in-ubuntu/
# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T
# Shm log file
JkShmFile /var/log/apache2/jk-runtime-status
4. Enable mod_jk configurations: Create a link in /etc/apache2/mods-
enabled/jk.conf which points to /etc/apache2/mods-available/jk.conf. This will enable mod_jk configuration in apache when
apache is restarted.
5. Create a worker properties file:Create a workers properties file
and place it in /etc/apache2/jk_workers.properties
# Define 1 real worker named ajp13
worker.list=ajp13# Set properties for worker named ajp13 to
use ajp13 protocol,
# and run on port 8009
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.lbfactor=50
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300
6. Configure url forwarding in apache to tomcat: Put thefollowing lines in you apache virtualhost to forward requests to
tomcat.
# Send everything for context /context to worker ajp13
JkMount / ajp13
JkMount /* ajp13
7. Configure AJP in tomcat server. Put the following line in
$TOMCAT_HOME/conf/server.xml file under the Servies tag.
-
8/14/2019 Configure Mod_jk With Apache 2
3/4
11/1/13 Configure mod_jk with Apache 2.2 in Ubuntu | TechNIX
www.technix.net.in/configure-mod_jk-with-apache-2-2-in-ubuntu/
Installing Tomcat 7 Microsoft to roll out Windows 8.1
update on August 17
Leave a Reply
8. Restart the tomcat and apache server: Relax you are done.
Posted in How Tos
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
You may use these HTML tags and attributes:
Post Comment
Search Search
ARC HIVES
November 2013
M T W T F S S
http://www.technix.net.in/how-tos/http://www.technix.net.in/microsoft-to-roll-out-windows-8-1-update-on-august-17/http://www.technix.net.in/installing-tomcat-7/ -
8/14/2019 Configure Mod_jk With Apache 2
4/4
11/1/13 Configure mod_jk with Apache 2.2 in Ubuntu | TechNIX
www.technix.net.in/configure-mod_jk-with-apache-2-2-in-ubuntu/
Proudly powered by WordPress| Theme: Reddle by Automattic.
Sep
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30
RECENT POSTS
Linus Torvalds Talks Linux Development
Linux Kernel 3.11 Released
Why nosql?
Windows 8 vulnerable to hacking
Dell launches Alienware laptops starting at Rs 1.14 lakh
HP Tegra 4 tablet leaked in benchmark
Intel Core i7 4960X comes in Q3 13
ID@Xbox is the new Self-Publishing program
No reward for hacking Zuckerbergs Facebook page
Nagios and Zabbix Monitoring Systems
http://www.technix.net.in/nagios-and-zabbix-monitoring-systems/http://www.technix.net.in/no-reward-for-hacking-zuckerbergs-facebook-page/http://www.technix.net.in/idxbox-is-the-new-self-publishing-program/http://www.technix.net.in/intel-core-i7-4960x-comes-in-q3-13/http://www.technix.net.in/hp-tegra-4-tablet-leaked-in-benchmark/http://www.technix.net.in/dell-launches-alienware-laptops-starting-at-rs-1-14-lakh/http://www.technix.net.in/windows-8-vulnerable-to-hacking/http://www.technix.net.in/nosql/http://www.technix.net.in/linux-kernel-3-11-released/http://www.technix.net.in/linus-torvalds-talks-linux-development/http://www.technix.net.in/2013/09/http://automattic.com/http://wordpress.org/