[mod_python] How do I find the document root?

Gregory Trubetskoy grisha at modpython.org
Wed Dec 6 09:54:57 EST 2000


This may be a roundabout way of doing this, but you could use the
req.server.defn_name and req.server.defn_line_number to read the
DocumentRoot from the config file.

I haven't had my coffee yet, so I hope the above makes sense.

--
  Gregory (Grisha) Trubetskoy
       grisha at modpython.org

On 6 Dec 2000, Dave Cole wrote:

> I want to find out the value of the DocumentRoot directive.  I cannot
> see any way to do this.
> 
> Can someone please point me in the right direction?
> 
> - Dave
> 
> -- 
> http://www.object-craft.com.au
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
> 




More information about the Mod_python mailing list