2006-02-07 01:42:50 +00:00
|
|
|
#
|
|
|
|
# Cacti: An rrd based graphing tool
|
|
|
|
#
|
2011-10-27 22:44:43 +00:00
|
|
|
|
2012-03-27 02:14:52 +00:00
|
|
|
# Change the following ACLs to open up Cacti to other network devices.
|
|
|
|
# For example:
|
|
|
|
# On httpd 2.4, change "Require host localhost" to "Require all granted".
|
|
|
|
# On httpd 2.2, change "Allow from localhost" to "Allow from all".
|
2011-10-27 22:44:43 +00:00
|
|
|
|
2006-02-07 01:42:50 +00:00
|
|
|
Alias /cacti /usr/share/cacti
|
|
|
|
|
|
|
|
<Directory /usr/share/cacti/>
|
2012-04-06 15:59:08 +00:00
|
|
|
<IfModule mod_authz_core.c>
|
|
|
|
# httpd 2.4
|
2012-03-27 02:14:52 +00:00
|
|
|
Require host localhost
|
2012-04-06 15:59:08 +00:00
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
|
|
# httpd 2.2
|
2012-03-27 02:14:52 +00:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
Allow from localhost
|
2012-04-06 15:59:08 +00:00
|
|
|
</IfModule>
|
2011-12-12 18:39:07 +00:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory /usr/share/cacti/install>
|
|
|
|
# mod_security overrides.
|
|
|
|
# Uncomment these if you use mod_security.
|
|
|
|
# allow POST of application/x-www-form-urlencoded during install
|
|
|
|
#SecRuleRemoveById 960010
|
|
|
|
# permit the specification of the rrdtool paths during install
|
|
|
|
#SecRuleRemoveById 900011
|
2006-02-07 01:42:50 +00:00
|
|
|
</Directory>
|
|
|
|
|
2011-10-27 22:44:43 +00:00
|
|
|
|
2012-04-06 15:59:08 +00:00
|
|
|
# These sections marked "Require all denied" (or "Deny from all")
|
2012-03-27 02:14:52 +00:00
|
|
|
# should not be modified.
|
|
|
|
# These are in place in order to harden Cacti.
|
2011-10-27 22:44:43 +00:00
|
|
|
<Directory /usr/share/cacti/log>
|
2012-04-06 15:59:08 +00:00
|
|
|
<IfModule mod_authz_core.c>
|
2012-03-27 02:14:52 +00:00
|
|
|
Require all denied
|
2012-04-06 15:59:08 +00:00
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_authz_core.c>
|
2012-03-27 02:14:52 +00:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
2012-04-06 15:59:08 +00:00
|
|
|
</IfModule>
|
2011-10-27 22:44:43 +00:00
|
|
|
</Directory>
|
|
|
|
<Directory /usr/share/cacti/rra>
|
2012-04-06 15:59:08 +00:00
|
|
|
<IfModule mod_authz_core.c>
|
2012-03-27 02:14:52 +00:00
|
|
|
Require all denied
|
2012-04-06 15:59:08 +00:00
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_authz_core.c>
|
2012-03-27 02:14:52 +00:00
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
2012-04-06 15:59:08 +00:00
|
|
|
</IfModule>
|
2011-10-27 22:44:43 +00:00
|
|
|
</Directory>
|