How to use the setEnv variable in apache?

前端 未结 2 522
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-15 03:31

I need to set my apache environment to \'foobar\'

I know I need to set in in my vhost, but what should I type there and where?

2条回答
  •  再見小時候
    2020-12-15 04:12

    I came here because I configured a python/django WSGI environment. Loading modules and SetEnv'ing all day long. Did not work. The vars would just not show up.

    What did work was this: https://gist.github.com/GrahamDumpleton/b380652b768e81a7f60c

    Graham describes how to basically clone your wsgi.py file and then use a different one for each environment (production, test, dev) and setting your environment vars in there with os.environ['whatever'] = 'you like!'

提交回复
热议问题