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.
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.
Let's Buy Me Coffee. https://saweria.co/habibzain https://ko-fi.com/habibzain