I'm trying to setup nagios with cherokee on ubuntu-server 9.04. My setup 
follows the documentation closely 
(http://www.cherokee-project.com/doc/cookbook_nagios.html) for nagios.
It works fine with apache but with cherokee I get the following error: 
The requested URL /nagios/cgi-bin/status.cgi was not found on this 
server  (status.cgi is only an example, it does not work with any cgi).

Does anybody have an idea what is wrong?

Saludos
   Bernhard

Attached parts of the configuration files the apache and cherokee.

cat /etc/apache2/conf.d/nagios.conf
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>

/etc/cherokee/cherokee.conf
....
vserver!10!rule!700!document_root = /usr/local/nagios/share
vserver!10!rule!700!encoder!deflate = 0
vserver!10!rule!700!encoder!gzip = 0
vserver!10!rule!700!handler = common
vserver!10!rule!700!handler!allow_dirlist = 1
vserver!10!rule!700!handler!allow_pathinfo = 0
vserver!10!rule!700!handler!date = 1
vserver!10!rule!700!handler!group = 0
vserver!10!rule!700!handler!iocache = 1
vserver!10!rule!700!handler!size = 1
vserver!10!rule!700!handler!symlinks = 1
vserver!10!rule!700!handler!theme = firefox3
vserver!10!rule!700!handler!user = 0
vserver!10!rule!700!match = directory
vserver!10!rule!700!match!directory = /nagios
vserver!10!rule!700!no_log = 0
vserver!10!rule!700!only_secure = 0
....
vserver!10!rule!500!document_root = /usr/local/nagios/sbin
vserver!10!rule!500!encoder!deflate = 0
vserver!10!rule!500!encoder!gzip = 0
vserver!10!rule!500!handler = cgi
vserver!10!rule!500!handler!change_user = 0
vserver!10!rule!500!handler!check_file = 1
vserver!10!rule!500!handler!error_handler = 1
vserver!10!rule!500!handler!pass_req_headers = 0
vserver!10!rule!500!handler!xsendfile = 0
vserver!10!rule!500!match = directory
vserver!10!rule!500!match!directory = /nagios/cgi-bin
vserver!10!rule!500!no_log = 0
vserver!10!rule!500!only_secure = 0
....
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to