Somehow, Google has indexed my site via IP address as well as by domain. E.g., 180.10.1.1/index.php as well as www.mysite.com/index.php
I want to 301 all those ip address urls to the appropriate hostname urls, but can't figure out how to do it in nginx.conf.
Thank you for your help...