LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-01-2011, 06:29 PM   #1
LMW
Member
 
Registered: Oct 2010
Location: Russia / USA
Distribution: Arch Linux
Posts: 36

Rep: Reputation: 2
Nagios and .htaccess


Greetings,

I'm running a bunch of web-sites on Apache web-server box (server1). There is also Nagios server on another machine and it checks http availability of our web-server (server1). I've had to implement authorization on one of our subdomains via ".htaccess" on server1 and now Nagios can't access http service on that server ( HTTP WARNING: HTTP/1.1 401 Authorization Required). When I specify explicitly "http_check" parameters, providing username and password, it works fine. But, I guess, it's not the right way to make it work, huh? When I try to turn off ".htaccess" for particular Virtual Host by setting "AllowOverride" directive to None, I'm getting the same "401" error message in Nagios server logs. What I'm doing wrong?
 
Old 06-02-2011, 01:17 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Without knowing what you have configured in your .htaccess here's one way you could go which works for me:
Code:
AuthName "Solo usuarios autorizados"
AuthType Digest
AuthDigestProvider file
AuthUserFile /export/home/eric/public_html/.htpasswd
Require valid-user
Order Allow,Deny
Allow from 192.168.0.0/24 # Private Network
Satisfy Any
Kind regards,

Eric
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Nagios 3.1.2 + RHEL 5.3 You don't have permission to access /nagios/ on this server psix Linux - Server 13 08-04-2015 02:25 AM
ould not create external command file '/usr/local/nagios/var/rw/nagios.cmd gerard.zapata Linux - Newbie 2 09-14-2012 01:57 PM
LXer: April Nagios Training Dates Include Advanced Nagios Class LXer Syndicated Linux News 0 03-18-2011 09:30 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration