Nginx Redirect Domain Name To Ip Address. HTTPS for IP address server listen 443 ssl. Once you have a certificate you should be able to add a block on nginx configuration for it.
Once you have a certificate you should be able to add a block on nginx configuration for it. Server listen 80. Server set_real_ip_from 100008.
Real_ip_header X - Real - IP.
Instead of using the name of the domain in server_name parameter simply use the IP address of the server then in the next line use return 301 domain to where the request is being redirected. Real_ip_header X - Real - IP. Server listen 80. Although there are many options to redirect from www to non-www in Nginx one of the easy way to do so is as described below.