Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] apache mod_wsgi radicale and passing in an environment variable
Date: Tue, 08 May 2018 10:26:13
Message-Id: 2282559.e0e9r8FCJe@dell_xps
In Reply to: [gentoo-user] apache mod_wsgi radicale and passing in an environment variable by Bill Kenworthy
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

Attachments

File name MIME type
signature.asc application/pgp-signature