On Sat, Apr 26, 2008 at 5:33 PM, Daniel Aleksandersen
<[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to