Monitorix/docs/monitorix-apache.conf

49 lines
1.2 KiB
Plaintext
Raw Normal View History

2012-10-22 15:26:37 +01:00
#
# Monitorix is a lightweight system monitoring tool
#
Alias /monitorix /var/lib/monitorix/www
ScriptAlias /monitorix-cgi /var/lib/monitorix/www/cgi
2012-10-22 15:26:37 +01:00
<Directory /var/lib/monitorix/www/cgi/>
2012-10-22 15:26:37 +01:00
DirectoryIndex monitorix.cgi
Options ExecCGI
<IfModule mod_authz_core.c>
# Apache 2.4
Require all denied
Require host 127.0.0.1
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Deny from all
Allow from 127.0.0.1
</IfModule>
2012-10-22 15:26:37 +01:00
</Directory>
# Apache rules to restrict access to Monitorix:
# Don't forget to add <username> in .htpasswd with the 'htpasswd' command.
#
#<Directory "/var/lib/monitorix/www">
2012-10-22 15:26:37 +01:00
# Options Indexes Includes FollowSymLinks
# <IfModule mod_authz_core.c>
# # Apache 2.4
# Require all denied
# Require host 127.0.0.1
# </IfModule>
# <IfModule !mod_authz_core.c>
# # Apache 2.2
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# </IfModule>
2012-10-22 15:26:37 +01:00
# AllowOverride None
# AuthUserFile /etc/httpd/conf/.htpasswd
# AuthGroupFile /dev/null
# AuthName "Monitorix: Restricted access, sorry."
# AuthType Basic
# Require user <username>
# Satisfy Any
#</Directory>