Skip to content

Instantly share code, notes, and snippets.

@dky
Last active December 16, 2015 15:19
Show Gist options
  • Select an option

  • Save dky/5454735 to your computer and use it in GitHub Desktop.

Select an option

Save dky/5454735 to your computer and use it in GitHub Desktop.
Apache Nagios config
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType "Basic"
AuthUserFile /etc/httpd/.htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType "Basic"
AuthUserFile /etc/httpd/.htpasswd.users
Require valid-user
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment