Scriptalias /nagios/cgi-bin /opt/nagios/sbin
Authtype basic
Options execcgi
Allowoverride
none
Order allow,deny
Allow from all
Authname "nagios
access"
Authuserfile /opt/nagios/etc/htpasswd.users
Require
valid-user
Alias /nagios /opt/nagios/share
Authtype basic
Options none
Allowoverride
none
Order allow,deny
Allow from all
Authname "nagios
access"
Authuserfile /opt/nagios/etc/htpasswd.users
Require
valid-user
Alias /pnp4nagios "/opt/pnp/share"
AllowOverride None
Order allow,deny
Allow from all
#
# Use the
same value as defined in nagios.conf
#
AuthName "Nagios
Access"
AuthType Basic
AuthUserFile
/opt/nagios/etc/htpasswd.users
Require valid-user
# Turn on URL
rewriting
RewriteEngine On
Options
FollowSymLinks
# Installation directory
RewriteBase /pnp4nagios/
# Protect application and system
files from being viewed
RewriteRule
^(application|modules|system) - [F,L]
# Allow any files or
directories that exist to be displayed directly
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}
!-d
# Rewrite all other URLs to
index.php/URL
RewriteRule .* index.php/$0 [PT,L]