在一个新的apache和munin服务器安装时,我到domain.com/munin我收到此错误.
Forbidden
You don't have permission to access /munin on this server.
Run Code Online (Sandbox Code Playgroud)
对于这些目录我做了一个chown -R munin:munin
dbdir /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir /var/run/munin
Run Code Online (Sandbox Code Playgroud)
我该怎么办apache?我用/etc/init.d/apache重启了apache,但仍然被禁止.我没有对新的apache安装中的apache配置文件进行任何更改.
j7n*_*n7k 42
打开Munin Apache配置文件:
vim /etc/munin/apache.conf
Run Code Online (Sandbox Code Playgroud)
更改以下行:
Order allow,deny
Allow from localhost 127.0.0.0/8 ::1
Options None
Run Code Online (Sandbox Code Playgroud)
像这样:
Order allow,deny
Allow from all
Options FollowSymLinks SymLinksIfOwnerMatch
Run Code Online (Sandbox Code Playgroud)
重启Apache,你就是金色的.
打开Munin Apache配置文件:
vim /etc/munin/apache24.conf
Run Code Online (Sandbox Code Playgroud)
更改以下行:
Require local
Options None
Run Code Online (Sandbox Code Playgroud)
像这样:
Require all granted
Options FollowSymLinks SymLinksIfOwnerMatch
Run Code Online (Sandbox Code Playgroud)
重启Apache,你就是金色的.
sudo service apache2 restart
Run Code Online (Sandbox Code Playgroud)
小智 17
对于Apache 2.4(随Ubuntu 13.10提供),/ etc/UX/apache.conf配置文件语法已更改:
Order allow, deny
Allow from all
Run Code Online (Sandbox Code Playgroud)
需要改为
Require all granted
Run Code Online (Sandbox Code Playgroud)
有关从Apache 2.2升级到Apache 2.4的更多详细信息,请参阅Apache升级说明.
小智 6
我有同样的问题,没有任何建议是有帮助的.所以我在目录树中浏览了一下,找到了apache24.conf文件.所以我将这个/etc/munin/apache24.conf文件添加到以下内容中,如j7nn7k所述:
Require all granted
Options FollowSymLinks SymLinksIfOwnerMatch
Run Code Online (Sandbox Code Playgroud)
当然,我删除了旧的价值观.现在它正在运作!
Nic*_*ton -1
编辑 /etc/munin/apache.conf 并取消注释以下 4 行AuthUserFile。
AuthUserFile /etc/munin/.htpasswd
AuthName "Munin"
AuthType Basic
require valid-user
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
42437 次 |
| 最近记录: |