durusmail: quixote-users: Giving Quixote the root url
Giving Quixote the root url
2004-10-26
2004-10-27
2004-10-27
2004-10-27
Giving Quixote the root url
Graham Fawcett
2004-10-27
Jason Sibre wrote:

>Graham Fawcett said:
>
>
>>On Tue, 26 Oct 2004 10:12:17 -0600, VanL  wrote:
>>
>>
>>>What is the best way to give quixote the root?
>>>
>>>
>>Look to the CGI variables in each request's 'environ' dictionary.
>>Notably, request.environ['SCRIPT_NAME'] ought to be of help.
>>
>>
>I don't think that's what the OP was talking about, but I'll second that
>thought.  I usually end up dropping such a function into a util module for a
>Qx app, so that internally, the app can use URLs that are 'rooted' to the
>application's root, rather than the webserver's root, and I don't have to
>worry about changing deployment models/locations.
>
>
Yes -- it's certainly a common case! Though a local() method might be
seen as nothing more than syntactic sugar, it might also give a single
point in code where "rooting" differences between platforms could be
addressed. (Haven't found any yet, but I'm sure they are out there...)

>I think the OP was actually having an issue getting Apache to allow Qx to
>handle the request for "/"... I haven't tried this, and can't offer any
>help.
>
>
Oops, quite right. Sorry about that.  I haven't tried this either...
Does this help at all?

http://www.modpython.org/pipermail/mod_python/2003-August/014073.html

-- G


reply