因為用rpm 安裝 cacti 沒有 cacti.conf檔案可以修改
[root@localhost etc]#cd /etc/httpd/conf.d/
[root@localhost etc]#touch cacti.conf
create
----------------------------------------------------------------------------------------------------------
# Cacti - the complete rrdtool-based graphing solution
#
# Allows only localhost by default
#
# Allowing cacti to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
# Make sure, that httpd can read your cacti directories.
# At minimum, you need
# chmod ugo+r -R /your/cacti/dir
# Make sure to replace with your directories
# When using SELinux, set the following:
# chcon -R -h -t httpd_sys_content_t /your/cacti/dir
# when using SELinux and you private homedir, enable
# setsebool -P httpd_enable_homedirs 1
# setsebool -P httpd_read_user_content 1
<Directory /var/www/http/cacti/>
AllowOverride None
Order Deny,Allow
Allow from 10.99.1.0/24
Allow from ::1
Options Indexes Includes FollowSymLinks
</Directory>
# These directories do not require access over HTTP
#
<Directory /var/www/http/cacti/>
Order Deny,Allow
Allow from all
</Directory>
----------------------------------------------------------------------------------------------------------
[root@localhost etc]# cd /etc/httpd/conf.d/
[root@localhost conf.d]# ls
autoindex.conf cacti.conf php.conf README userdir.conf welcome.conf
[root@localhost conf.d]# pwd
/etc/httpd/conf.d
[root@localhost conf.d]# cat cacti.conf
# Cacti - the complete rrdtool-based graphing solution
#
# Allows only localhost by default
#
# Allowing cacti to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
# Make sure, that httpd can read your cacti directories.
# At minimum, you need
# chmod ugo+r -R /your/cacti/dir
# Make sure to replace with your directories
# When using SELinux, set the following:
# chcon -R -h -t httpd_sys_content_t /your/cacti/dir
# when using SELinux and you private homedir, enable
# setsebool -P httpd_enable_homedirs 1
# setsebool -P httpd_read_user_content 1
<Directory /var/www/http/cacti/>
AllowOverride None
Order Deny,Allow
Allow from 10.99.1.0/24
Allow from ::1
Options Indexes Includes FollowSymLinks
</Directory>
# These directories do not require access over HTTP
#
<Directory /var/www/http/cacti/>
Order Deny,Allow
Allow from all
</Directory>
