Greetings,

I recently discovered Cherokee and would have questions relating to its 
appropriateness for hosting Django sites.

Firstly, is there or will there be a way to activate keepalives per 
virtual host, as opposed to the whole server? Keepalives speed up the 
serving of static content but murder the performance of dynamic 
applications, so under Lighttpd I have a virthost with keepalives for 
static contents and a virthost without keepalive for Django proper. As 
a rule of thumb, different server parameters for different virtual 
hosts would be extremely useful for all sorts non-trivial setups, but 
it's really the keepalives that will make or break the deal for me.

Next, is there a way to make StaticGenerator 
(http://superjared.com/projects/static-generator/) work? It requires 
that the server be able to serve a static index.html file if it exists 
at the requested path, and delegate the request to Django if it 
doesn't.

I can see two ways to go about this:

1) Putting Django under a SCGI Handler in a /django/ directory rule, and 
then setting /django/ (in addition to index.html) as the directory 
index for the List&Send handler. Except it doesn't work: the L&S 
handler returns a directory listing instead of calling Django. Did I 
misunderstand the documentation, where it speaks about using 
e.g. /cgi-bin/index.pl as a directory index?

2) Adding an option to the L&S Handler (or to all of them, really) so 
that in case there's no file matching the request (i.e., the Handler 
would return a 404, or a directory listing in the case of L&S), they 
can pass it down to the next handler.

The second option would be far better but does require some 
implementation work in Cherokee. Unless this is already possible and I 
didn't find how?

Lastly, I rent a virtual server on which there is no loopback interface, 
making the use of the 127.0.0.1 address to secure the admin interface 
impossible. Is there, or will there be a way to lock the interface 
behind a password (and if at all possible, SSL)?

Thank you. Cherokee is a very promising piece of software and I hope 
I'll be able to switch to it if possible.

-- P.

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

Reply via email to