I am using apache2 and munin server on Ubuntu. How do I password protect domain.com/munin with this username and password
admin/test101
Here is the location of my munin htmldir:
htmldir /var/cache/munin/www
You could add basic authication to apache folder using .htaccess If you munin locate at /var/www/munin
, you can do like this edit file /var/www/munin/.htaccess
, put the follow content there
AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/munin/.htpasswd
<limit GET PUT POST>
require valid-user
</limit>
run command htpasswd /var/www/munin/.htpasswd admin
to set password for admin user
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.