1 |
On Tuesday, 8 May 2018 00:00:04 BST Bill Kenworthy wrote: |
2 |
> Hi all, |
3 |
> |
4 |
> how does one set an environment variable for Apache mod_wsgi on gentoo? |
5 |
> |
6 |
> I am using the radicale wsgi module and it requires the config file to |
7 |
> be passed in from the environment to be set in the environment. The |
8 |
> documents recommend something like whats below, but is not specific on |
9 |
> saying where it is to be set in my configuration. |
10 |
> |
11 |
> |env = RADICALE_CONFIG=/etc/radicale/config| |
12 |
> |
13 |
> BillK |
14 |
|
15 |
Have you tried using the SetEnv directive? For example: |
16 |
|
17 |
========================= |
18 |
<VirtualHost hostname:80> |
19 |
... |
20 |
SetEnv RADICALE_CONFIG /etc/radicale/config |
21 |
... |
22 |
</VirtualHost> |
23 |
============== |
24 |
|
25 |
should work after you reload the config. |
26 |
|
27 |
-- |
28 |
Regards, |
29 |
Mick |