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 <[email protected]>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 > [email protected] > http://mailman.nginx.org/mailman/listinfo/nginx > -- regards, Nurahmadie --
_______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
