habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Install Mod JK Status Apache Tomcat in Ubuntu 20.04 – Part II

1 min read

Install-Mod-JK-Status-Apache-Tomcat-in-Ubuntu-20.04

Hi Dude, before I start this article, I hope you have finished and succeeded in article part 1 – Install Tomcat9 and Apache with Mod JK in Ubuntu 20.04 Single Node. This post will concern showing mod jk status on tomcat.

The tomcat, apache and library module packages of Mod JK have been installed correctly and running well.

In this article, our IP Web Server is 192.168.197.144.

Lets do it.

Edit worker property in file Workers.properties

To show Mod JK status, we have to edit worker property in /etc/apache2/workers.properties. And add worker with type of worker is “status”.

root@tcserver:~# vim /etc/apache2/workers.properties
# Define 1 real worker using ajp13
worker.list=worker1,jk-status

#define jk-status worker type
worker.jk-status.type=status

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
  • worker1 : Name the worker in AJP connector tomcat in server.xml.
  • jk-status : name a worker that has type “status”.
  • worker.jk-status.type=status : Parameter that define worker “jk-status” have type status.

Mounting with JkMount uri

Open virtual host document root which mod jk status will mounted. Under DocumentRoot add JkMount where uri will created.

root@habibza:~# vim /etc/apache2/sites-enabled/000-default.conf
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
JkMount /* worker1
JkMount /jk-status jk-status
  • /jk-status : The uri/url that will be created to access Mod JK status.

The last, check and type in browser:

http://192.168.197.144/jk-status

If everything goes well, it will look like the image below.

Install-Mod-JK-Status-Apache-Tomcat-in-Ubuntu-20.04
JK Status Manager.

Ok, JK Status Manager is running well.

That is short post about mod jk status on tomcat. Hope this article helps, please feel free to leave a comment if you have any questions and I’ll appreciate it.

See also  Setting HA cluster with Corosync and Pacemaker Ubuntu 20.04 server

Let's Buy Me Coffee.

Buy Me a Coffee at ko-fi.com

https://saweria.co/habibzain
https://ko-fi.com/habibzain

habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Ansible Ubuntu 20.04

Introduction Ansible is an open-source automation tool that simplifies configuration management, application deployment, and task automation. It is designed to be simple, lightweight, and...
habibzain
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *

Never miss good article from us, get weekly updates in your inbox