This is my apache conf module:
Code: Select all
ScriptAlias /nagios/cgi-bin "/var/www/cgi-bin/nagios"
<Directory "/var/www/cgi-bin/nagios">
Options ExecCGI
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /var/www/etc/nagios/nagios.passwd
Require valid-user
Order deny,allow
Deny from all
Allow from all
</Directory>
Alias /nagios "/var/www/nagios"
<Directory "/var/www/nagios">
DirectoryIndex index.php
Options None
AllowOverride None
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /var/www/etc/nagios/nagios.passwd
Require valid-user
Order deny,allow
Deny from all
Allow from all
</Directory>
Code: Select all
main_config_file=/etc/nagios/nagios.cfg
(changed this manually:)
#physical_html_path=/nagiosdatadir@
physical_html_path=/nagios
url_html_path=/nagios
(no changes from here down to eof)