天天看點

ganglia通路時出現"You don't have permission to access /ganglia/ on this server"

安裝ganglia後,通路浏覽器出現"You don't have permission to access /ganglia/ on this server"

按照網絡上的要求配置/etc/httpd/conf.d/ganglia.conf

#
# Ganglia monitoring system php web frontend
#

Alias /ganglia /usr/share/ganglia

<Location /ganglia>
  Order deny,allow
  Deny from all
  Allow from all
  #Allow from 127.0.0.1
  #Allow from ::1
  # Allow from.example.com
</Location>

           

然而并不起作用,最後注釋了上面的這些規則,添加了“ Require all granted”後,重新開機httpd問題解決。

[root@hadoop-101 ~]# cat  /etc/httpd/conf.d/ganglia.conf   
#
# Ganglia monitoring system php web frontend
#

Alias /ganglia /usr/share/ganglia

<Location /ganglia>
  #Order deny,allow
  #Deny from all
  #Allow from all
  #Allow from 127.0.0.1
  #Allow from ::1
  # Allow from.example.com
  Require all granted
</Location>
[root@hadoop-101 ~]# 
           
ganglia通路時出現"You don't have permission to access /ganglia/ on this server"