Fix nginx rewrites on multi-node deployments (again)