[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: http authentication , apache , .htaccess



Lucio de Aquino Marinho wrote:

> 
> 
> 
>   Hello for all ,,
> 
> 
>        i have a problem with debian unstable , apache , and nagios-text ,
> 
>  Everything is ok ,  but the apache do not authenticate  , someone can
> help-me
> 
> 
> 
> httpd.conf
> 
> 
> ScriptAlias /nagios/cgi-bin/ /usr/lib/cgi-bin/nagios/
> 
> <Directory "/usr/lib/cgi-bin/nagios/">
>     AllowOverride AuthConfig
>     Order allow,deny
>     Allow from all
>     Options ExecCGI
> </Directory>
> 
> 
> Alias /nagios/ /usr/share/nagios/htdocs/
> <Directory "/usr/share/nagios/htdocs/">
>     #Options None
>     AllowOverride AuthConfig
>     Order allow,deny
>     Allow from all
> </Directory>
> 
> 
> ---------------------------------
> .htaccess
> 
> AuthName "Teste"
> AuthType Basic
> AuthUserFile /etc/nagios/htpasswd.users
> require valid-user
> 
> 
> ----------------------------------------
AFAIK the default apache configuration ignores '.htaccess' files. search for
"AllowOverride" in '/etc/apache/httpd.con' and change it from "None" to
something else, it's documented.

Bye

> 
> apache log
> 
> Fri Oct 24 11:34:50 2003] [notice] Accept mutex: sysvsem (Default:
> sysvsem)
> [Fri Oct 24 11:34:54 2003] [error] user nagiosadmin not found:
> /nagios/cgi-bin/status.cgi
> [Fri Oct 24 11:34:57 2003] [error] user nagiosadmin not found:
> /nagios/cgi-bin/status.cgi
> [Fri Oct 24 11:58:52 2003] [error] user nagiosadmin not found:
> /nagios/cgi-bin/status.cgi
> [Fri Oct 24 11:58:56 2003] [error] user nagiosadmin not found:
> /nagios/cgi-bin/status.cgi
> [Fri Oct 24 12:02:28 2003] [notice] SIGHUP received.  Attempting to
> [restart Fri Oct 24 12:02:29 2003] [notice] Apache/1.3.28 (Debian
> [GNU/Linux)
> configured -- resuming normal operations
> [Fri Oct 24 12:02:29 2003] [notice] Accept mutex: sysvsem (Default:
> [sysvsem) Fri Oct 24 12:02:35 2003] [error] user nagiosadmin not found:
> /nagios/cgi-bin/status.cgi
> [Fri Oct 24 12:02:38 2003] [error] user nagiosadmin not found:
> /nagios/cgi-bin/status.cgi
> [Fri Oct 24 12:02:41 2003] [error] user nagiosadmin not found:
> /nagios/cgi-bin/status.cgi
> 
> 
> -------------------------------------------------------------------------
> 
>  
>  htpasswd.users
> 
> 
> nagiosadmin:vQ6Q9/zGRqvH2
> 
> 
> 
> Thanks  for any help

--
Haim



Reply to: