I want to do a server rule which redirects the public IP address to the domain (not using .htaccess) so ...
curl -I http://<IP Address>
and
curl -I https://<IP Address>
goes 301 to https://www.domain.com
I tried putting the server rule below in the additional nginx directives but this is...