chris-zinho
(usa Debian)
Enviado em 01/08/2011 - 14:35h
Renato, existe sim informações repetidas.
Porém em qual eu devo editar? Vou postar o meu /etc/apache2/conf.d/nagios.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
# AllowOverride None
AllowOverride AuthConfig
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Aqui é o meu /etc/apache2/http.conf
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin/
<Directory "/usr/local/nagios/sbin/">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /nagios /usr/local/nagios/share/
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
</Directory>
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory "/usr/share/phpmyadmin">
Options None
AllowOverride AuthConfig
Order deny,allow
Allow from all
AuthType Basic
# AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
# allow from X.X.X.X (Substitua o X.X.X.X pelo IP de host ou IP de rede a ter permissãde acesso)
</Directory>
Alias /squidadmin /var/www/squidadmin
<Directory "/var/www/squidadmin">
Options None
AllowOverride AuthConfig
Order deny,allow
Allow from all
AuthType Basic
# AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
# allow from X.X.X.X (Substitua o X.X.X.X pelo IP de host ou IP de rede a ter permissãde acesso)
</Directory>
Abs,