httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Fischer <>
Subject [users@httpd] SetEnv global and in VirtualHost, same with UnsetEnv
Date Tue, 04 Apr 2006 06:36:55 GMT
Hash: SHA1


I'm currently having an environment where I have in the global scope
(i.e. outside any Vhost) the statement

SetEnv MyEnvVar MyValue

Now, for some special VHosts I need another value in this variable and I
tried to set another value in side a VHost with:

<VirtualHost ...>
SetEnv MyEnvVar SomeOtherValue

but no matter what I do, I can't change the value VHost-wise. I also
tried UnsetEnv but I can't unset it. It seems in this case I can't
override the global scope settings. I thought that in apache it usually
works this way, VHost (local) settings override global settings.

Note that I'm not using .htaccess anywhere, these are all in
configuration files directly parsed by apache at startup.

The only workaround I know of is that I put the SetEnv in all VHost by
hand and change it for those who need a different value, but I'ld like
to avoid this if possible.

thanks for any pointers,
- - Markus
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla -


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message