* [gentoo-user] apache mod_wsgi radicale and passing in an environment variable
@ 2018-05-07 23:00 Bill Kenworthy
2018-05-08 10:25 ` Mick
0 siblings, 1 reply; 2+ messages in thread
From: Bill Kenworthy @ 2018-05-07 23:00 UTC (permalink / raw
To: gentoo-user
Hi all,
how does one set an environment variable for Apache mod_wsgi on gentoo?
I am using the radicale wsgi module and it requires the config file to
be passed in from the environment to be set in the environment. The
documents recommend something like whats below, but is not specific on
saying where it is to be set in my configuration.
|env = RADICALE_CONFIG=/etc/radicale/config|
BillK
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] apache mod_wsgi radicale and passing in an environment variable
2018-05-07 23:00 [gentoo-user] apache mod_wsgi radicale and passing in an environment variable Bill Kenworthy
@ 2018-05-08 10:25 ` Mick
0 siblings, 0 replies; 2+ messages in thread
From: Mick @ 2018-05-08 10:25 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 745 bytes --]
On Tuesday, 8 May 2018 00:00:04 BST Bill Kenworthy wrote:
> Hi all,
>
> how does one set an environment variable for Apache mod_wsgi on gentoo?
>
> I am using the radicale wsgi module and it requires the config file to
> be passed in from the environment to be set in the environment. The
> documents recommend something like whats below, but is not specific on
> saying where it is to be set in my configuration.
>
> |env = RADICALE_CONFIG=/etc/radicale/config|
>
> BillK
Have you tried using the SetEnv directive? For example:
=========================
<VirtualHost hostname:80>
...
SetEnv RADICALE_CONFIG /etc/radicale/config
...
</VirtualHost>
==============
should work after you reload the config.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-08 10:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-07 23:00 [gentoo-user] apache mod_wsgi radicale and passing in an environment variable Bill Kenworthy
2018-05-08 10:25 ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox