Hello all,

I have a little issue running cherokee 99.3.
I wanted to simply run a cgi stored in a sub directory of the rootweb directory.
Here is an example of what I did.

The rootweb directory on my system is:

/var/www

I make a directory:

/var/www/dir

I place a cgi (addr) in the directory /var/www/dir:

-r-xr-xr-x 1 www-data www-data 75 2009-03-08 22:00 addr

--- example cgi addr ---

#!/bin/bash

echo Content-type: text/plain
echo ""

echo "${REMOTE_ADDR}"

----------------

I add a behavior to the default virtual server.

Target: addr,  Type: File Exists, Handler: CGI, Auth: NO, Enc: No, Final: 
Checked

all this is simple enough.

Now I go to test it.  I load http://servers-ip/dir/addr with my browser.
Instead of running the cgi its contents is dumped to the browser.
This is obviously wrong.

Now the biggy... If you place an EMPTY file named addr in the rootweb directory
/var/www in my case, it then starts working as expected and returns the 
connecting
clients ip.  Yes using the same url (http://servers-ip/dir/addr).

As I see it the only way this is not a bug is if File Exists is really only for 
the rootweb directory.

I just wanted to check here to make sure before I filed a bug report.  Does 
this seem like a bug to anyone else?

Thanks

Frederick Reeve


_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to