OK, maybe it'll be a good idea to clarify me real problem. when I access a site hosted on my server with HTTP, I get SERVER_ADDR = 127.0.0.1 when I access the same site with HTTPS, I get SERVER_ADDR = [THE_REAL_SERVER_IP] Posted at Nginx Forum: http://forum.nginx.org/read.php?2,141655,194639#msg-194639