Comment on Improve your beta-testing with Nginx, Lua and RedisComments−projct14yCouldn't you use a cookie and map, rather than URLs? Sounds like users could end up on different rails back ends unintentionally based on what URL they use, with your method...http://serverfault.com/questions/268633/controlling-nginx-pr...−transmit101OP14yAs I explained in the post, that's the intended behaviour.We want to allow our users to enable beta version for all visitors to their Mixlr page, not just for themselves.But a cookie approach would be easy too - see my other comment for a simple example.−projct14yah, I see. I guess I didn't quite understand the product enough. Neat idea, and thanks for clearing that up.However I wonder if map is faster than using lua just for cookies. I'll have to test it. :)
Comments
Couldn't you use a cookie and map, rather than URLs? Sounds like users could end up on different rails back ends unintentionally based on what URL they use, with your method...
http://serverfault.com/questions/268633/controlling-nginx-pr...
As I explained in the post, that's the intended behaviour.
We want to allow our users to enable beta version for all visitors to their Mixlr page, not just for themselves.
But a cookie approach would be easy too - see my other comment for a simple example.
ah, I see. I guess I didn't quite understand the product enough. Neat idea, and thanks for clearing that up.
However I wonder if map is faster than using lua just for cookies. I'll have to test it. :)