How to rewrite with cookie

Rodrigo Serra Inacio roinacio at gmail.com
Mon Aug 12 18:51:51 UTC 2013


Hi,
What do you think is more efficient...cookies or redirect by the user agent
?

Thank you


2013/8/12 Adie Nurahmadie <nurahmadie at gmail.com>

> yes, it's possible.
>
> The simplest way is to use if and check either $cookie_XXX or
> $http_user_agent variable.
> You may want to explore nginx's wiki page here
> http://wiki.nginx.org/HttpCoreModule#.24cookie_COOKIE
>
>
> On Mon, Aug 12, 2013 at 9:11 PM, Rodrigo Serra Inacio <roinacio at gmail.com>wrote:
>
>> Hi, it's possible to rewrite a mobile URL using cookies?
>> For example, when you acess a URL with a mobile device (android) , nginx
>> shoul read the cookie and redirect this device according to the android
>> model ...
>>
>> Something like this
>>
>> From Samsung Galaxy GTI900 redirect to  http://mysite.com/gti900
>> From Samsung Tables I200 redirect to http://mysite.com/i200
>>
>> It's possible ?
>> Thanks.
>>
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
>
> --
> regards,
> Nurahmadie
> --
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130812/0c2f0c1c/attachment.html>


More information about the nginx mailing list