Nginx Redirect IP address to domain name

You may also like...

  • craig34

    How would this change to redirect the IP address being accessed with SSL? I’ve changed the port from 80 to 443, but I get an error about the SSL certificate. If I accept the error and proceed anyway, it redirects properly. Is there a way to redirect before that error comes up?