How to set up redirect www and non-www http to non-www https o nginx config file vim /etc/nginx/sites-enabled/blackonsole.conf # http server { listen 80; server_name blackonsole.org www.blackonsole.org; return 301 https://blackonsole.org$request_uri; } # https server ...