httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcos Filho <marcosfilh...@gmail.com>
Subject [users@httpd] Add a http header if the request comes from an iphone
Date Mon, 16 Apr 2012 14:25:02 GMT
Hello Guys,

I have the following requirement:

"Add a http header if the request is from an iphone."
ps: this request will be proxied to a apache tomcat server with mod_proxy.

I have checked the mod_headers documentation and it says to use the
mod_setenvif

My apache's version is 2.2.19 and I am trying this configuration:

SetEnvIf %{HTTP_USER_AGENT} value "iphone" [NC]
RequestHeader add deviceType  "HighEnd"

Also, I tried this:
SetEnvIf User-Agent value "iphone" [NC]
RequestHeader add deviceType  "HighEnd"

Those "SerEnvIf" are not working and probably I am doing something wrong.

I have done lots of research on google and then tried lots of settings but
nothing is working.

Do you guys have an idea how I can get it working? I would really
appreciate your help.

Regards,
Marcos

Mime
View raw message