Redirect request based on URL paramters via nginx
We've an Enterprise level Mobile/iPad application and we did major changes to our backEnd (Rails App) so as a usual process we uploaded new app version and waiting to approve via app-Store, We don't when Apple is going to approve it, We have to support previous and upcoming version and Solution must be easy/Generic.
We configured our Mobile/iPad application to send a new parameter with every single request say version=1 Or Version=Beta then we utilized nginx to redirect such request to servers who're capable to serve New Changes and Others we're to old machines This could be an Hack or Not so good implementation but for now this seems easy, affordable and long term too.
sudo/RAW solution to nginx configuration
And if you get stuck… Ask Here
email me email@example.com