ganglia访问时出现"You don't have permission to access /ganglia/ on this server"

After installing ganglia, access the browser appears "You do not have permission to access / ganglia / on this server"
configuration in accordance with the requirements on the network /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>

However does not work, the last comment of the rules above, add the "Require all granted" after restart httpd problem is solved.

[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 ~]# 

Guess you like

Origin www.cnblogs.com/cosmos-wong/p/11980500.html