I'm trying to figure out how to force WWW in varnish for only one domain. I saw this answer to remove WWW but I don't know how to translate it to force it.
Edit: To clarify, my nginx config was working fine. It was only after I added Varnish that this started happening. I found the culprit and answered my own question.