httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] Add a http header if the request comes from an iphone
Date Mon, 16 Apr 2012 14:39:22 GMT
On Mon, Apr 16, 2012 at 10:31 AM, Marcos Filho <marcosfilho88@gmail.com> wrote:
> Yes, I did copy from my configurations.
>
> I know that this line works if it is isolated:
> 'RequestHeader add deviceType  "HighEnd" '
>
> But I need to check if the request is from an iphone, and that condition is
> not working at all.
>
> Do you have any idea how I can fix it?

Use setenvif to heck the user-agent, and set an environment variable
Then use th eoption for RequestHEader to depend on an environment variable.

>
>
> On Mon, Apr 16, 2012 at 11:27 AM, Eric Covener <covener@gmail.com> wrote:
>>
>> > SetEnvIf %{HTTP_USER_AGENT} value "iphone" [NC]
>> > RequestHeader add deviceType  "HighEnd"
>> >
>> > SetEnvIf User-Agent value "iphone" [NC]
>> > RequestHeader add deviceType  "HighEnd"
>>
>> This  seems completely wrong, did you copy and paste from your
>> configuration?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message