fix nginx vary logic