Allow the redirect for a service to be set by a cookie. For instance:
Make a cookie named beta_serviceName
Set value to betaName
User will silently get redirected from /serviceName to /betaName
This implementation may seem counter intuitive. It works around NGINX not supporting hyphens in the $cookie variable inside rewrite rules. The $cookie variable with hyphens does work within an if condition. More details here:
Allow the redirect for a service to be set by a cookie. For instance:
User will silently get redirected from /serviceName to /betaName
This implementation may seem counter intuitive. It works around NGINX not supporting hyphens in the $cookie variable inside rewrite rules. The $cookie variable with hyphens does work within an
if
condition. More details here:http://bit.ly/1UQuC67