apache2 - Munin、apache 以及如何密码保护 munin

标签 apache2 password-protection munin

我在 Ubuntu 上使用 apache2 和 munin 服务器。如何使用此用户名和密码密码保护 domain.com/munin

admin/test101

这是我的 munin htmldir 的位置:
htmldir /var/cache/munin/www

最佳答案

您可以使用 .htaccess 向 apache 文件夹添加基本身份验证
如果你 munin 位于 /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>

运行命令 htpasswd /var/www/munin/.htpasswd admin 为管理员用户设置密码

关于apache2 - Munin、apache 以及如何密码保护 munin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9128394/

相关文章:

apache - 无法在 CentOS 上放大 Munin 图

erlang - Tsung:munin的CPU使用率值太高

mysql - Munin MySQL插件的未知图形错误

.htaccess - Apache mod_rewrite 不工作

linux - Apache2:获取错误的根目录

linux - Apache2 网络服务器不显示页面

javascript - Password_hash() 提交前需要预哈希吗?

java - 关闭android应用程序时需要密码

perl - apache2-Ubuntu 中的 Bugzilla 安装问题

c# - 完整性检查 : Salt and hashed passwords