当我转到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