nginx reverse proxy fix

This commit is contained in:
2012-05-04 15:11:39 +00:00
parent 13a2f1dff1
commit f37e074199
+1 -1
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']; ?>