Page 1 of 1

NRDP error

Posted: Mon Oct 20, 2014 9:08 pm
by lee62817
i install nrdp on centos 6.3 nagios core 3.41

test api ok

Image

but i install nrdp on centos7 and nagios core 4.08

http://192.168.1.25/nrdp

show error :

Forbidden

You don't have permission to access /nrdp on this server.

Image

http error log :

[Tue Oct 21 09:37:27.268706 2014] [suexec:notice] [pid 1113] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' di$
[Tue Oct 21 09:37:27.409935 2014] [auth_digest:notice] [pid 1113] AH01757: generating secret for digest authentication ...
[Tue Oct 21 09:37:27.410972 2014] [lbmethod_heartbeat:notice] [pid 1113] AH02282: No slotmem from mod_heartmonitor
[Tue Oct 21 09:37:28.202281 2014] [mpm_prefork:notice] [pid 1113] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16 configured $
[Tue Oct 21 09:37:28.205389 2014] [core:notice] [pid 1113] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Oct 21 09:39:37.636837 2014] [authz_core:error] [pid 2352] [client 192.168.1.25:33926] AH01630: client denied by server configuration:$


please help me to fix this error

thanks

Re: NRDP error

Posted: Tue Oct 21, 2014 1:07 pm
by tmcdonald
Looks like an Apache misconfiguration. Please run the following commands and show their output:

Code: Select all

getenforce
cat /etc/httpd/conf.d/nrdp.conf

Re: NRDP error

Posted: Tue Oct 21, 2014 7:44 pm
by lee62817
[root@localhost 桌面]# getenforce
Disabled
[root@localhost 桌面]# cat /etc/httpd/conf.d/nrdp.conf
<Directory "/usr/local/nrdp">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "NRDP"
# AuthType Basic
# AuthUserFile /usr/local/nrdp/htpasswd.users
# Require valid-user
</Directory>

Alias /nrdp "/usr/local/nrdp/server"

Re: NRDP error

Posted: Wed Oct 22, 2014 4:46 pm
by tmcdonald
Apache 2.4 handles authorization a bit differently:

http://httpd.apache.org/docs/2.4/upgrading.html

You will want to change these lines:

Code: Select all

Order allow,deny
Allow from all
to this:

Code: Select all

Require all granted

Re: NRDP error

Posted: Thu Oct 23, 2014 8:28 pm
by lee62817
Thank You Very Much

it can work now

Re: NRDP error

Posted: Fri Oct 24, 2014 9:09 am
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!