abrist wrote:This really does not seem right, it is at least VERY far from default/standard. What is in the httpd file?
Code: Select all
cat /etc/httpd/conf.d/nagios.conf/httpd.conf
total 12
drwxr-xr-x 2 root root 4096 Nov 25 05:27 .
drwxr-xr-x 3 root root 4096 Nov 19 16:30 ..
-rw-r--r-- 1 root root 982 Nov 25 05:27 httpd.conf
vinoth@velocitylinux:~$ ^C
vinoth@velocitylinux:~$ cat /etc/httpd/conf.d/nagios.conf
cat: /etc/httpd/conf.d/nagios.conf: Is a directory
vinoth@velocitylinux:~$ ^C
vinoth@velocitylinux:~$ cat /etc/httpd/conf.d/nagios.conf/httpd.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>