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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux