Skip to content

Instantly share code, notes, and snippets.

@rsanchez
Created October 26, 2011 15:46
Show Gist options
  • Save rsanchez/1316752 to your computer and use it in GitHub Desktop.
Save rsanchez/1316752 to your computer and use it in GitHub Desktop.
Rackspace IP Address config hack for EE/CI
<?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