Monitor JK-1.2.40 connection status through jkstatus
Monitor JK-1.2.40 connection status through jkstatus
Bytes ----------------------------------------------------------------------------------------------------------------------
Configure jkstatus
0) This article is based on the integration of Apache and Tomcat using JK. For the integration process, see
1) Add two lines in the workers. properties file: worker. list = status (actually worker. list = status, tomcat) and worker. status. type = status.
2) add a line under the <Directory/> label in the httpd-vhosts.conf file: JkMount/jkstatus status
3) Restart apache and access http: // 192.168.0.103/jkstatus in the browser. By default, no password is required for access.
Bytes ----------------------------------------------------------------------------------------------------------------------
Configure the password for access to jkstatus
1) modify the httpd-vhosts.conf file and add the following content under the <Directory/> label:
<Location/jkstatus>
Options MultiViews
AuthType Basic # Basic verification
AuthName "Auther Center" # prompt in the pop-up box
AuthUserFile conf/. htpasswd # password storage location
Require valid-user granted # Only users in the. htpasswd file can access
</Location>
2) generate a password file
Run the [/app/apache/bin/htpasswd-c/app/apache/conf/. htpasswd admin] command to generate a password file containing the user admin.
At the same time, you will be asked to enter the admin password of the new user twice. Finally, you can see the generated password file through [ls-al] (it is a hidden file and can be seen only after-)
3) change the password
Htpasswd-m. htpasswd Username
4) delete a user
Htpasswd-D. htpasswd Username
5) Restart apache.
Bytes ----------------------------------------------------------------------------------------------------------------------
@ Create Sep 27,201 4 3:36:34
@ Author Xuan Yu <