[英]Munin, apache and how to password protect munin
I am using apache2 and munin server on Ubuntu. 我在Ubuntu上使用apache2和munin服务器。 How do I password protect domain.com/munin with this username and password
如何使用此用户名和密码密码保护domain.com/munin
admin/test101
Here is the location of my munin htmldir: 这是我的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 您可以使用.htaccess向apache文件夹添加基本身份验证如果你位于
/var/www/munin
,你可以这样编辑文件/var/www/munin/.htaccess
,将以下内容放在那里
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 运行命令
htpasswd /var/www/munin/.htpasswd admin
为admin用户设置密码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.