Re: AW: AW: Stripping or setting certain http response headerrs

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

 



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 christian.folini@xxxxxxx 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:harald.falkenberg@xxxxxxx]
> Gesendet: Mittwoch, 29. Oktober 2008 15:14
> An: Folini Christian, IT222 extern
> Cc: users@xxxxxxxxxxxxxxxx
> Betreff: Re: AW:  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: 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