From owner-freebsd-questions@FreeBSD.ORG Thu Jan 31 13:00:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3298416A419 for ; Thu, 31 Jan 2008 13:00:33 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from mk-outboundfilter-2.mail.uk.tiscali.com (mk-outboundfilter-2.mail.uk.tiscali.com [212.74.114.38]) by mx1.freebsd.org (Postfix) with ESMTP id B56ED13C4DD for ; Thu, 31 Jan 2008 13:00:32 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) X-Trace: 20743794/mk-outboundfilter-2.mail.uk.tiscali.com/PIPEX/$MX-ACCEPTED/pipex-infrastructure/62.241.163.7 X-SBRS: None X-RemoteIP: 62.241.163.7 X-IP-MAIL-FROM: xfb52@dial.pipex.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CADBVoUc+8aMH/2dsb2JhbACrIw X-IP-Direction: IN Received: from blaster.systems.pipex.net ([62.241.163.7]) by smtp.pipex.tiscali.co.uk with ESMTP; 31 Jan 2008 13:00:31 +0000 Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by blaster.systems.pipex.net (Postfix) with ESMTP id 44158E000045; Thu, 31 Jan 2008 13:00:29 +0000 (GMT) Message-ID: <47A1C66C.2040209@dial.pipex.com> Date: Thu, 31 Jan 2008 13:00:28 +0000 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: David Alanis References: <20080131063855.mi2yjcdou8g0c08w@mail.dalan.us> In-Reply-To: <20080131063855.mi2yjcdou8g0c08w@mail.dalan.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Apache Error Authentication (Nagios) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 13:00:33 -0000 David Alanis wrote: > Good Day: > > First and foremost, I would like to thank everyone for providing a > fantastic mailing list. Today I happen to need assistance from you > all. What is happening is I installed apache and nagios on my > firewall. However, when I go to login to nagios I get the username > and password prompt but I am unable to login I apologize for the very > long e-mail). I did some research online but found nothing too much > helpful. Thank you in advanced! > > #Error Message from httpd-errors > [Wed Jan 30 22:12:58 2008] [error] [client 67.190.229.227] access to > /nagios/cgi-bin/tac.cgi failed, reason: require directives present > and no Authoritative handler. What does your .htaccess file in /usr/local/www/nagios/cgi-bin look like? Here's an example: AuthName "Nagios" AuthType Basic AuthUserFile /usr/local/etc/nagios/htpasswd.nagios require valid-user Same goes for /usr/local/www/nagios. You need to actually set up the AuthUserFile using htpasswd (part of apache). From your httpd.conf # Nagios ScriptAlias /nagios/cgi-bin /usr/local/www/nagios/cgi-bin AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios /usr/local/www/nagios Options None AllowOverride AuthConfig Order allow,deny Allow from all --Alex