简体   繁体   中英

how to add password to mod_jk status page

I'm using apache2 and mod_jk for balancing requests throw servers. my problem is that everybody can access to status page of mod_jk . is there any way to add authentication for that? (I can't use read_only mode because i have to edit balancer specification from that page)

You can put a directive before the mod_jk stuff to do the authentication. For example:

<Location "/status">
    Order allow,deny
    Allow from all
    AuthType Basic
    AuthName "Restricted Files"
    AuthUserFile /usr/local/apache/passwd/passwords
    Require user admin
  </Location>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM