:: How to redirect www to non-www domain in nginx
+ edit nginx.conf or your virtualhost file
vi /etc/nginx/nginx.conf
+ add redirecting on server {}
if ($host = 'www.blackonsole.org') { rewrite ^/(.*)$ //blackonsole.org/$1 permanent; }
+ reload nginx
nginx -s reload