I have 2 websites on the same server using the same version of WordPress. They both make calls to /wp-cron.php from the server itself. They are both managed by nginx and have very similar setups.
When I look at the access logs, I see the requests coming in to /wp-cron.php. But, for one website all the requests are logged as coming from 127.0.0.1, while the other website all the requests are logged as the external IP of the server.
What is the cause of this, and how can I make sure all such requests get logged as localhost?