[mod_python] Trying to use httpd.conf to modify environment for publisher handler

Nick nick at dd.revealed.net
Wed Oct 27 17:05:28 EDT 2004


FYI, I've found that mod_env and mod_python interact badly when it comes to 
reading the CGI environment (apache 1.3).

Nick

Tobiah wrote:
> 
> 
> I put:
> 
>     SetEnv PYTHONPATH /usr/local/lib/python
> 
> Into my httpd.conf, but when I restart apache and do:
> 
>     def index(req):
> 
>         out = ''
>         for thing in os.environ:
>             out += thing + " => " + os.environ[thing] + "\n"
>         return out
> 
> 
> I see my environment, but not the ones that I put in with SetEnv.
> Am I missing something?
> 
> Thanks,
> 
> Toby
> 
> _______________________________________________
> 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