[Mono-devel-list] [PATCH] MonoSetEnv for mod_mono
Gonzalo Paniagua Javier
gonzalo at ximian.com
Fri Mar 11 01:11:16 EST 2005
On Thu, 2005-03-10 at 12:57 -0500, jreed wrote:
> Apache has SetEnv, mod_perl has PerlSetEnv, but I can find no
> equivalent for mod_mono.
>
> The attached patch provides for a MonoSetEnv directive
> that takes a semicolon-separated list of name=value pairs
> which are SETENV'd before forking mod-mono-server.
>
> I considered changing mod-mono-server instead of mod_mono.c,
> but know of no way to SET environment variables in C# code.
>
> This patch helps portability of .Net web applications
> where environment variables are used on Windows/IIS,
> while also matching capability found in Apache, mod_perl, etc.
>
> Please consider for inclusion. Its a relatively
> small set of changes. Thanks!
The patch was generated against 1.0.6 and didn't apply cleanly to SVN
version, but I modified it and it's in SVN now (lacking documentation
updates).
Thanks.
-Gonzalo
More information about the Mono-devel-list
mailing list