<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=862552120-26052004><FONT face=Arial
color=#0000ff size=2>This has been asked before, I believe.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=862552120-26052004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=862552120-26052004><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=862552120-26052004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=862552120-26052004><FONT face=Arial
color=#0000ff size=2>--Michael</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mod_python-bounces@modpython.org
[mailto:mod_python-bounces@modpython.org] <B>On Behalf Of </B>Diener,
Edward<BR><B>Sent:</B> Wednesday, May 26, 2004 1:05 PM<BR><B>To:</B>
mod_python@modpython.org<BR><B>Subject:</B> [mod_python] Document
root<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=209305519-26052004>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 ?</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>