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: signature.asc
Description: This is a digitally signed message part.

Reply via email to