n00b trying to set up on freebsd

Kurt Buff kurt.buff at gmail.com
Tue Jan 26 00:03:08 CET 2010


On Mon, Jan 25, 2010 at 14:16, Marc Powell <marc at ena.com> wrote:
>
> On Jan 25, 2010, at 3:40 PM, Kurt Buff wrote:
>
>> On Mon, Jan 25, 2010 at 13:08, Scott Lambert <lambert at lambertfam.org> wrote:
>>> On Mon, Jan 25, 2010 at 11:51:51AM -0800, Kurt Buff wrote:
<snip>
>> So, yes, restarting FF on my box does then cause the auth prompt.
>> However, if I change httpd.conf to the following, I still get the auth
>> prompt, but then get denied for anything but the home page -
>
> What version of apache and what does error_log have to say about it?

apache-2.2.14_5

192.168.24.63 - - [25/Jan/2010:14:48:54 -0800] "GET /nagios HTTP/1.1"
401 401 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET /nagios
HTTP/1.1" 301 238 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT
5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET /nagios/
HTTP/1.1" 200 718 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT
5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET
/nagios/side.php HTTP/1.1" 200 4309 "http://loki.zetron.com/nagios/"
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET
CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR
3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET
/nagios/stylesheets/common.css HTTP/1.1" 304 -
"http://loki.zetron.com/nagios/side.php" "Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET
/nagios/images/sblogo.png HTTP/1.1" 304 -
"http://loki.zetron.com/nagios/side.php" "Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET
/nagios/main.php HTTP/1.1" 200 2382 "http://loki.zetron.com/nagios/"
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET
CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR
3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET
/nagios/images/greendot.gif HTTP/1.1" 304 -
"http://loki.zetron.com/nagios/side.php" "Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET
/nagios/images/NagiosEnterprises-whitebg-112x46.png HTTP/1.1" 304 -
"http://loki.zetron.com/nagios/main.php" "Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET
/nagios/images/sflogo.png HTTP/1.1" 304 -
"http://loki.zetron.com/nagios/main.php" "Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET
/nagios/images/logofullsize.png HTTP/1.1" 304 -
"http://loki.zetron.com/nagios/main.php" "Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:00 -0800] "GET
/nagios/images/weblogo1.png HTTP/1.1" 304 -
"http://loki.zetron.com/nagios/main.php" "Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - nagiosadmin [25/Jan/2010:14:49:02 -0800] "GET
/nagios/images/orangedot.gif HTTP/1.1" 304 -
"http://loki.zetron.com/nagios/side.php" "Mozilla/4.0 (compatible;
MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729)"
192.168.24.63 - - [25/Jan/2010:14:49:13 -0800] "GET
/nagios/cgi-bin/status.cgi?servicegroup=all&style=summary HTTP/1.1"
403 227 "http://loki.zetron.com/nagios/side.php" "Mozilla/4.0
(compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322;
.NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648;
.NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"

> /usr/local/www/nagios/cgi-bin is the physical directory on your server that contains the *.cgi files?

Yes, so it seems:

loki/usr/local/www 14:47 2010-01-25 root 0# ll nagios/cgi-bin
total 3466
-rwxr-xr-x  1 nagios  nagios  250420 Dec  8 08:12 avail.cgi
-rwxr-xr-x  1 nagios  nagios  246552 Dec  8 08:12 cmd.cgi
-rwxr-xr-x  1 nagios  nagios  211060 Dec  8 08:12 config.cgi
-rwxr-xr-x  1 nagios  nagios  265460 Dec  8 08:12 extinfo.cgi
-rwxr-xr-x  1 nagios  nagios  217652 Dec  8 08:12 histogram.cgi
-rwxr-xr-x  1 nagios  nagios  194804 Dec  8 08:12 history.cgi
-rwxr-xr-x  1 nagios  nagios  190804 Dec  8 08:12 notifications.cgi
-rwxr-xr-x  1 nagios  nagios  184244 Dec  8 08:12 outages.cgi
-rwxr-xr-x  1 nagios  nagios  189236 Dec  8 08:12 showlog.cgi
-rwxr-xr-x  1 nagios  nagios  257044 Dec  8 08:12 status.cgi
-rwxr-xr-x  1 nagios  nagios  212276 Dec  8 08:12 statusmap.cgi
-rwxr-xr-x  1 nagios  nagios  204724 Dec  8 08:12 statuswml.cgi
-rwxr-xr-x  1 nagios  nagios  213428 Dec  8 08:12 summary.cgi
-rwxr-xr-x  1 nagios  nagios  207380 Dec  8 08:12 tac.cgi
-rwxr-xr-x  1 nagios  nagios  223668 Dec  8 08:12 trends.cgi


>> <Directory "/usr/local/www/nagios/cgi-bin">
>>  Options ExecCGI
>>  AllowOverride None
>>  Order allow,deny
>
> You didn't change the Order directive here.

That seems to have fixed it. Wow.


<snip>
> Things you need to change should only be -
>        <Directory [/path/to/cgi's]>
>        Allow from [your block] (multiple Allow from's...)
>        AuthUserFile [/path/to/htpasswd.users]
>
> Once you've got this part working correctly, verify that you have 'use_authentication=1' in cgi.cfg.

That was set - I didn't set it, so I'm guessing it was set as part of
the default installation.

Thanks - that's two people I now owe on this list.

Kurt

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list