Alvaro Lopez Ortega wrote:
> Hi there Rui!
>
>> My original cherokee setup was:
>>
>> vserver!1!rule!10000!match = directory
>> vserver!1!rule!10000!match!directory = /demo
>>
>> but if I change it to:
>>
>> vserver!1!rule!10000!match = directory
>> vserver!1!rule!10000!match!directory = /
>>
>> it to works without changing django, though, I would like to have
>> several django scgi apps mounted on different places, eg:
>>
>> /demo1 --> scgi_app1
>> /demo2 --> scgi_app2
>
> Do you have an example of what would be the expected PATH_INFO and
> SCRIPT_NAME in a case like those? (I don't think 'runserver' allows
> that, does it?).
Please note that I'm not sure what should appear in those variables. All
I known is what I've observed and written in the original email, and
what I've compared with lighttpd bellow.
This is my lighttpd config (I'm using lighty 1.4.19):
cat<<"EOF" >ROOT/etc/lighttpd.conf
server.modules = ("mod_scgi")
server.event-handler = "linux-sysepoll"
server.document-root = "/dev/null"
server.bind = "0.0.0.0"
server.port = 8080
scgi.debug = 3
$HTTP["url"] !~ "^/static/" {
scgi.server = (
"/" => (
"server1" => (
"socket" => "/tmp/hello.sock",
"check-local" => "disable",
"allow-x-send-file" => "enable",
"disable-time" => 0,
)
)
)
}
EOF
When browsing to http://localhost:8080/demo/.
With lighty, I got this on the django app:
GET /demo/
PATH_INFO='/'
SCRIPT_NAME='/demo'
PATH_TRANSLATED /dev/null/
SCRIPT_FILENAME /dev/null/demo
REQUEST_URI /demo/
NB: works as I expect.
With cherokee (config as match!directory = /):
GET ar/www/demo/
PATH_INFO='/demo/'
SCRIPT_NAME='ar/www'
NB: does not work; results in 404 (the app sgci sends it).
NB: PATH_TRANSLATED, SCRIPT_FILENAME and REQUEST_URI are not sent by
cherokee.
With cherokee (config as match!directory = /demo):
GET /demo/demo/
PATH_INFO='/'
SCRIPT_NAME='/demo/demo'
NB: does not work; results in 404 (the app sgci sends it).
NB: PATH_TRANSLATED, SCRIPT_FILENAME and REQUEST_URI are not sent by
cherokee.
With lighty (config as "/demo" => ...):
2008-08-26 13:08:26 : GET /demo/
PATH_INFO='/'
SCRIPT_NAME='/demo'
NB: works as I expect.
Lighty always places the prefix we define in the config at SCRIPT_NAME,
and rest of path in PATH_INFO.
Cherokee seems to be broken. What do you think?
Best regards,
Rui Lopes
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee