Fixed nginx rewrites on multi-node deployments