[mod_python] SetEnv and add_common_vars()

Gregory (Grisha) Trubetskoy grisha at modpython.org
Fri Jan 9 19:48:39 EST 2004

On Fri, 9 Jan 2004, Edwin Grubbs wrote:

> When I use SetEnv in my apache conf file, it causes a lot of the
> environment variables (such as DOCUMENT_ROOT) to disappear that
> add_common_vars() normally would set.

When you say "dissapear" - what are you using to look them up?

> The only workaround I have is to put the SetEnv statements in a
> different <Directory> block than the directory with the files served by
> mod_python.

What is the objective here? If you are you trying to pass information to
mod_python from the config, a better way is to use PythonOption.


More information about the Mod_python mailing list