durusmail: quixote-users: problems with mod_scgi, Quixote 2 and Apache 2
problems with mod_scgi, Quixote 2 and Apache 2
2005-05-13
2005-05-13
2005-05-13
problems with mod_scgi, Quixote 2 and Apache 2
Philippe Normand
2005-05-13
Le 13/5/2005, "Matt Patterson"  a écrit:

>Hello everyone,
>
>I think this may be another go-around for this, but I haven't been
>able to find an answer yet.
>
>I've got a simple Quixote 2 app (largely cribbed from the demo app,
>I'm just trying to get the setup working) that runs fine under
>simple_server.py, but doesn't run under mod_scgi.
>
>The error I'm getting from Quixote is this:
>
>
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.3/site-packages/quixote/publish.py", line
>> 273, in proce
>> ss_request
>>     output = self.try_publish(request)
>>   File "/usr/lib/python2.3/site-packages/quixote/publish.py", line
>> 248, in try_p
>> ublish
>>     assert path[:1] == '/'
>> AssertionError
>>
>
>That line in try_publish is performing an assert on path, which has
>been set to the value of the environment variable PATH_INFO.
>

Well, i'm getting the same error. But i'm not sure where the problem
really is. From my experiments it seems that when i map the Quixote app
to "/something" i have to pass that "/something" as keyword
(script_name) parameter to the scgi_server.run() function. And then it
works fine.

If i try to map my app to "/", the thing simply breaks (same error as
you). So there's probably a workaround using some rewrite rules and
such Apache goodies. You could keep the "/something" url internal and
map "/" to it...

Philippe
reply