[mod_python] config tree for htaccess

Gregory (Grisha) Trubetskoy grisha at modpython.org
Wed Dec 17 21:59:16 EST 2003

The config_tree only gives you what is in the main config file, that is

I am not sure that it is technically possible to get what's in .htaccess
other than reading it. As the .htaccess file is parsed, individual
directives result in calls into modules, which then do things accordingly,
but I don't think httpd tries to store this information anywhere


On Wed, 17 Dec 2003, Kevin Ballard wrote:

> Is there any way to get the config tree from any relevant .htaccess
> files as well as just the httpd.conf file, or do I have to look for and
> parse them manually? Also, is there any way to get the applicable
> config lines from the httpd.conf file, i.e. the ones inside
> <Directory>/<Files>/etc. blocks that apply to the current URI without
> having to parse them all manually?
> I'm writing a script that mimics FancyIndexing and it's mostly done
> (i.e. it does just about everything except let you sort by headers,
> including scanning the AddIcon/AddIconByType/AddDescription lines in
> apache.config_tree(), and looks identical to the FancyIndexing in the
> rendered version (i.e. the source is cleaner, but the result is
> identical)), but it only uses the config directives in the root of
> httpd.conf (i.e. the root of apache.config_tree()) and I'd like to make
> it use all applicable directives.
> --
> Kevin Ballard
> kevin at sb.org
> http://www.tildesoft.com
> http://kevin.sb.org
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

More information about the Mod_python mailing list