Maybe a silly question, but how do I pass environment variables in apache. I have enabled the LoadModule env_module modules/mod_env.so
statement in apache's httpd.conf
file and I know from documentation that I should use the statement PassEnv env-variable [env-variable]
. But where exactly do I need to add this line (in which file and on what position)?
I.e. I want my system variable
PassEnv PYTHONPATH C:\Python\DLLs;C:\Python\lib;C:\Python;C:\Python\lib\site-packages
to be propagated to my web-server. Where do I put it?
Sorry, I'm an absolute beginner with apache and can't seem to find any step-by-step instructions for this problem.