nginx redirecting all subdomains (when it shouldn't)
I have an nginx server running. I want it to redirect http://www.example.com to https://www.example.com, but not touch any other subdomains like http://foo.example.com. For some reason, no matter what I add in the subdomain, it still gets rerouted. My webpage shows…