I want to setup a hidden service but I would like to hide the IP from the webserver software (nginx here) and PHP, but I'm not sure how to do it?
If nginx and PHP can't know the current server IP, no leak is possible
From my understanding a software can only know the machine IP with the help of a remote host.