SetEnvIf help (concepts OK, but lacks implementation)

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

 



Hi,

This is for Apache 2.2.4 and newer. Comments explain what I am trying to 
achieve on each step. The coding is just what I think is right, but know not 
to be working. Please help me fix the coding.

Help is very appreciated.

SetEnvIfNoCase Host !^www.domain.tld$ wwwhost=no
# Sets enviromental variable wwwhost to no if host is not www.domain.tld
SetEnvIfNoCase Host ^www.aleksandersen.net$ wwwhost=yes
# Sets enviromental variable wwwhost to yes if host is not www.domain.tld

SetEnvIf wwwhost no Header append Vary host
# Appends "host" to Vary header if env. variable wwwhost is no (set above)
SetEnvIf wwwhost no Header always edit Content-Location 
^"http://www.domain.tld/"+$
# Edits Content-Location header with regex that is supposed to 
add "http://www.domain.tld/"; in front of the normal Content-Location header 
if variable wwwhost is no (set above) thus creating a absolute URI from a 
relative URI
SetEnvIf wwwhost yes Header always unset Content-Location
# Unsets Content-Location header if variable wwwhost is yes (set above)
-- 
Daniel Aleksandersen

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