1
mirror of https://github.com/jakejarvis/simpip.git synced 2025-04-26 12:58:27 -04:00

nginx reverse proxy fix

This commit is contained in:
Jake Jarvis 2012-05-04 15:11:39 +00:00
parent 13a2f1dff1
commit f37e074199

View File

@ -1 +1 @@
<?php header("Content-type: text/plain"); echo $_SERVER['HTTP_X_FORWARDED_FOR']; ?>
<?php header("Content-type: text/plain"); echo ($_SERVER['$_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['$_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; ?>