Add a http header if the request comes from an iphone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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
[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]