apache - 带有Apache的Munin服务器-您无权访问此服务器上的/munin

标签 apache munin

当我转到domain.com/munin时,在新安装的apache和munin服务器上安装此错误。

Forbidden

You don't have permission to access /munin on this server.

对于这些目录,我做了chown -R munin:munin
dbdir /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir  /var/run/munin

我应该用apache做些什么?我用/etc/init.d/apache restart重述了Apache,但仍然被禁止。我没有从新安装的apache更改apache配置文件。

最佳答案

Apache <2.4

打开Munin Apache配置文件:

vim /etc/munin/apache.conf

更改以下几行:
Order allow,deny
Allow from localhost 127.0.0.0/8 ::1
Options None

像这样:
Order allow,deny
Allow from all
Options FollowSymLinks SymLinksIfOwnerMatch

重新启动Apache,您会很高兴。

Apache > 2.4

打开Munin Apache配置文件:
vim /etc/munin/apache24.conf

更改以下几行:
Require local   
Options None   

像这样:
Require all granted
Options FollowSymLinks SymLinksIfOwnerMatch

重新启动Apache,您会很高兴。
sudo service apache2 restart

关于apache - 带有Apache的Munin服务器-您无权访问此服务器上的/munin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9127802/

相关文章:

php - 400 : Bad Request !

linux - Munin - 监控系统停机时发出警报

apache - 如何使用 mod_rewrite 将 example.com 301 重定向到 www.example.com?

Apache 2.4 + PHP-FPM 和授权 header

asp.net - 有什么方法可以将资源(CPU、RAM 使用情况)限定为 IIS 或 Apache 上的虚拟目录?

apache - 如何配置 Munin-2.0.x 以在 Fedora 上使用 CGI(仅)生成内容?

linux - Munin 在初始设置后未记录任何内容

munin - 我如何设置 munin 插件乘法

php - UTF-8贯穿始终