Munin、apache 以及如何使用密码保护 munin
我在 Ubuntu 上使用 apache2 和 munin 服务器。如何使用此用户名和密码保护domain.com/munin
admin/test101
这是我的 munin htmldir 的位置:
htmldir /var/cache/munin/www
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 .htaccess 将基本身份验证添加到 apache 文件夹
如果你 munin 位于
/var/www/munin
,你可以这样做编辑文件
/var/www/munin/.htaccess
,将以下内容放入其中运行命令
htpasswd /var/www/munin/.htpasswd admin
为管理员用户设置密码You could add basic authication to apache folder using .htaccess
If you munin locate at
/var/www/munin
, you can do like thisedit file
/var/www/munin/.htaccess
, put the follow content thererun command
htpasswd /var/www/munin/.htpasswd admin
to set password for admin user