Hi,

Finally I was able to compile Cherokee with a working trace (I used 
--prefix=/usr instead of /urs/local to made that happen).

So now I can clearly see the problem that I mentioned in my previous post:
File exists don't use the directory define under Document Root under his 
Handler tab, it always use the default Document Root (defined under the Basic 
tab).

I don't know if it's a bug or a feature but for me it's more a bug.

I did the test with 0.99.39 and 1.0.16, same results.

So is it a bug?

Thanks

Etienne

On 2011-01-15, at 06:04, Taher Shihadeh wrote:

> Hello Etienne.
> 
> I'm forwarding the discussion to the mailing list so that more people can 
> contribute to solving the problem ;)
> Regarding that, I'm baffled. If not traces are being shown you must be using 
> the wrong binary, but it doesn't seem that way from the commands you posted. 
> I get hundreds of information lines with that same command, compiling in a 
> similar way (autogen instead of configure, since I use the SVN version):
> 
> ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var 
> --enable-beta --enable-trace
> 
> Anyway, two more tips:
> 1) Since you are at it, you could as well be using the latest release. 1.0.16 
> has gone a long way, and you'll have a much *much* better Cherokee-Admin.
> 2) Are you sure the document-root for the static rule is correctly set to 
> /www/static (either through the rule or through the vserver settings)? You 
> could see exactly how the rule is being matched and if you had the traces 
> working.
> 
> Regards
> 
> On 14/01/11 21:38, Etienne Desautels wrote:
>> Ok, I start pulling my hairs over here!
>> 
>> I review my settings, permissions, paths, etc. and I cannot see anything 
>> that cause the problem.
>> 
>> So I decided to follow your advice and use the CHEROKEE_TRACE to see what is 
>> going on. Unfortunately I was using the distro version of Cherokee 0.99.39 
>> bundle with Ubuntu 10.04. So I downloaded the source of this version and 
>> compile it on my development server like this:
>> ./configure --localstatedir=/var --prefix=/usr/local --sysconfdir=/etc 
>> --enable-trace
>> make
>> sudo make install
>> 
>> Then, after that I stopped the bundle one, I start my compile version like 
>> that:
>> sudo CHEROKEE_TRACE=all /usr/local/sbin/cherokee
>> 
>> It's running fine but I don't get any tracing? I tried different things but 
>> without any success.
>> 
>> What I'm doing wrong? Is there a possible conflict between the bundle 
>> version and the one I compile?
>> 
>> 
>> And about my initial rule problem, is there a possibility to have more info 
>> on the working of "File exists", especially with "match any files"?
>> 
>> Thanks
>> 
>> Etienne
>> 
>> On 2011-01-07, at 04:11, Taher Shihadeh wrote:
>> 
>>> Your approach seems correct.
>>> Make sure the File exists rule is final, though. Probably it is a minor 
>>> configuration issue that is messing things up. I would recommend using 
>>> CHEROKEE_TRACE [1] (which requires cherokee to be compiled with special 
>>> flags) to be able to troubleshoot exactly how the server is performing the 
>>> matches.
>>> 
>>> Good luck!
>>> 
>>> [1]: http://www.cherokee-project.com/doc/dev_debug.html
>>> 
>>> 
>>> On 07/01/11 05:37, Etienne Desautels wrote:
>>>> Hi,
>>>> 
>>>> I'm trying to configure the rules of a virtual server to serve static 
>>>> files from a directory, but if the file requested doesn't exist I want the 
>>>> request to be pass to my Django app.
>>>> 
>>>> Currently I have a virtual server with my default rule as uWSGI serving 
>>>> Django and 2 Directories rule serving Static Content for the media and the 
>>>> Django admin media. All that is working.
>>>> 
>>>> I tried to add another rule on top of that of type File exists set to 
>>>> match any files with a List&   Send Handler with a Document Root pointing 
>>>> to the directory where my static site is. But all requests are still sent 
>>>> to Django?
>>>> 
>>>> Default root: /www/media/
>>>> Root of static site: /www/static/
>>>> 
>>>> For example, If I have theses files in my static/ directory:
>>>> index.html
>>>> test.html
>>>> public/index.html
>>>> private/
>>>> 
>>>> I want theses URL to serve the corresponding static files:
>>>> http://mysite.com/index.html
>>>> http://mysite.com/test.html
>>>> http://mysite.com/public/index.html
>>>> http://mysite.com/public
>>>> 
>>>> And theses URL served by Django:
>>>> http://mysite.com/other
>>>> http://mysite.com/private/
>>>> http://mysite.com/some.html
>>>> 
>>>>  Is it possible? How can I achieve that?
>>>> 
>>>> Thanks
>>>> 
>>>> Etienne
>>>> 
>>>> _______________________________________________
>>>> Cherokee mailing list
>>>> [email protected]
>>>> http://lists.octality.com/listinfo/cherokee
>>> 
>>> -- 
>>> [email protected]
>>> http://unixwars.com/
>>> 
>>> 
> 
> 
> -- 
> [email protected]
> http://unixwars.com/
> 
> 

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

Reply via email to