2008-04-27 18:58 skreiv Joshua Slive: > On Sat, Apr 26, 2008 at 5:33 PM, Daniel Aleksandersen wrote: > > 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. Thanks for clarifying the syntax! :-) > (But I'm not positive you can override Content-Location headers like that.) With Apache 2.4.4 and newer you can unset it when used with “always”. However it does not work if you negotiate trough a handler such as PHP; because PHP manipulates the headers too. You will have to unset it both in Apache and in the PHP file. Header always unset Content-Location Could you help me with the regex editing too, please? Were "magical-regex" takes the current header and inserts "http://www.domain.tld/" as a prefix. Header always edit Content-Location "magical-regex" -- Daniel from http://www.opensourcenotebook.com/ the Debian GNU/Linux blog --------------------------------------------------------------------- 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