You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Markus Fischer <ma...@fischer.name> on 2006/04/04 08:36:55 UTC

[users@httpd] SetEnv global and in VirtualHost, same with UnsetEnv

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

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
</VirtualHost>

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEMhQH1nS0RcInK9ARAoOvAJ9Jx6ABpaGO+gammbInOwEJhbh8pACbBIDb
+gLEb/AwEMvls+/BcqZfKwE=
=bej9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org