(332) 331-8677

Nginx Redirects: "www" Sub-domains To "non-www"

sudo nano /etc/nginx/nginx.conf

http directive

server {
    server_name "~^www\.(.*)$" ;
    return 301 $scheme://$1$request_uri ;
}