Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added proper permission parameters depending on Apache version. <http…
  • Loading branch information
mikaku committed Apr 7, 2014
1 parent a2f7d5f commit 878dcf1
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions docs/monitorix-apache.conf
Expand Up @@ -8,19 +8,35 @@ ScriptAlias /monitorix-cgi /var/lib/monitorix/www/cgi
<Directory /var/lib/monitorix/www/cgi/>
DirectoryIndex monitorix.cgi
Options ExecCGI
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
<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>
</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">
# Options Indexes Includes FollowSymLinks
# Order Deny,Allow
# Deny from All
# Allow from 127.0.0.1
# <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>
# AllowOverride None
# AuthUserFile /etc/httpd/conf/.htpasswd
# AuthGroupFile /dev/null
Expand Down

0 comments on commit 878dcf1

Please sign in to comment.