My site uses both www and non-www addresses for our site (dcturano.com). The problem I'm having is that the server is redirecting non-www traffic to www traffic. How do I prevent this?
server {
listen 80;
listen [::]:80;
listen 443 default_server ssl;
server_name dcturano.com www.dcturano.com;
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
}