Munin, apache and how to password protect munin

I am using apache2 and munin server on Ubuntu. How to protect domain.com/munin password with this username and password

admin/test101 

Here is the location of my munin htmldir:

 htmldir /var/cache/munin/www 
+4
source share
1 answer

You can add basic authorization to the apache folder using .htaccess. If you find munin in /var/www/munin , you can do it this way: edit the file /var/www/munin/.htaccess , put the following content there

  AuthType Basic AuthName "Members Only" AuthUserFile /var/www/munin/.htpasswd <limit GET PUT POST> require valid-user </limit> 

execute the htpasswd /var/www/munin/.htpasswd admin command to set a password for the admin user

+10
source

Source: https://habr.com/ru/post/1394599/


All Articles