Welcome! Log In Create A New Profile

Advanced

Re: How to rewrite with cookie

August 12, 2013 02:54PM
Hi,
What do you think is more efficient...cookies or redirect by the user agent
?

Thank you


2013/8/12 Adie Nurahmadie <nurahmadie@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@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@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
>
> --
> regards,
> Nurahmadie
> --
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to rewrite with cookie

roinacio August 12, 2013 10:12AM

Re: How to rewrite with cookie

Adie Nurahmadie August 12, 2013 11:12AM

Re: How to rewrite with cookie

roinacio August 12, 2013 02:54PM

Re: How to rewrite with cookie

Jonathan Matthews August 12, 2013 03:48PM

Re: How to rewrite with cookie

Bob S. August 12, 2013 04:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 183
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready