Hi,

thank you for this information. Yes, this works so far. Unfortunately the
env=... switch is not available for mod_expires derictives.

Have you an idea how to generate a valid time stamp for the expires
response header? %d and %t seem not to help here?

I would like generate something like:
        setenvif User-Agent myagent_value match_agent
        header set expires "current_time +shift" env=match_agent

regards
        Harald

On Wed, 29 Oct 2008 [EMAIL PROTECTED] wrote:

> In such cases, you work with environment variables.
>
> The doc lists the following example:
>
> SetEnvIf MyRequestHeader myvalue HAVE_MyRequestHeader
> Header set MyHeader "%D %t mytext" env=HAVE_MyRequestHeader
>
> Alternatively you can set the environment variable via mod_rewrite
> to allow for more complicated conditions.
>
> hope this helps,
>
> Christian
>
> --
> Christian Folini, IT 222
> Webserver Security Engineer
>
>
> -----Ursprüngliche Nachricht-----
> Von: Harald Falkenberg [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 29. Oktober 2008 15:14
> An: Folini Christian, IT222 extern
> Cc: users@httpd.apache.org
> Betreff: Re: AW: [EMAIL PROTECTED] Stripping or setting certain http response 
> headerrs
>
>
> Hi,
>
> yes, I saw it already. But how to change http response headers only in 
> certain cases? For certain user agents?
>
> If you can give me an example, that would be nice.
>
> regards
>       Harald
>
>
>


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