On Sat, Apr 26, 2008 at 5:33 PM, Daniel Aleksandersen <aleksandersen+apache.org@xxxxxxxxxx> wrote: > 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) You mean: SetEnvIfNoCase Host !^www.domain.tld$ nowwwhost SetEnvIfNoCase Host ^www.aleksandersen.net$ yeswwwhost Header append Vary host env=nowwwhost and similarly for other conditional header setting. (But I'm not positive you can override Content-Location headers like that.) Joshua. --------------------------------------------------------------------- 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