[mod_python] Document root

Michael S. Fischer michael at dynamine.net
Wed May 26 14:23:54 EDT 2004


This has been asked before, I believe.
 
Apache has to determine the proper virtual host for a given request before
it can figure out what the document root is.  For this reason, the document
root can only be part of the request object.
 
--Michael


  _____  

From: mod_python-bounces at modpython.org
[mailto:mod_python-bounces at modpython.org] On Behalf Of Diener, Edward
Sent: Wednesday, May 26, 2004 1:05 PM
To: mod_python at modpython.org
Subject: [mod_python] Document root


The document root is returned by the req.document_root() function. But it
seems I should be able to obtain the document root without needing a request
object, since such a value applies to Apache itself. Is there a way of
getting Apache internal values ? I do see the Apache functions but the
explanation of what some of these return, such as config_tree(), seem pretty
sparse and I have the feeling that such values are available somehow. Does
anybody know how I might obtain the document root without a request object,
as well as access to other Apache internal values ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://modpython.org/pipermail/mod_python/attachments/20040526/bf7b8588/attachment.html


More information about the Mod_python mailing list