Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
Search found 1 match
- Fri Oct 16, 2015 5:11 am
- Forum: Web Server
- Topic: Showing the real client ip (behind nat) - HELP!
- Replies: 5
- Views: 18660
Re: Showing the real client ip (behind nat) - HELP!
That's because you are using NGINX as proxy, so Apache sees any petition with the server's IP.
To find the "real" client IP you have to use in PHP.
Hope this helps.
Regards.
To find the "real" client IP you have to use
Code: Select all
<?php echo $_SERVER['HTTP_X_REAL_IP']; ?>
Hope this helps.
Regards.