Created
October 26, 2011 15:46
-
-
Save rsanchez/1316752 to your computer and use it in GitHub Desktop.
Rackspace IP Address config hack for EE/CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//add this to your config file | |
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) | |
{ | |
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment