[wp-trac] Re: [WordPress Trac] #9235: Extract real IP behind a load
balancer
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 11 18:29:48 GMT 2009
#9235: Extract real IP behind a load balancer
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: Denis-de-Bernardy
Type: enhancement | Status: accepted
Priority: normal | Milestone: 2.9
Component: Optimization | Version: 2.7
Severity: normal | Keywords: needs-patch early
-------------------------------+--------------------------------------------
Comment(by robertaccettura):
That would work as well, though I think this looks somewhat odd looks
somewhat odd:
{{{
define('WP_REMOTE_ADDR', $_SERVER['X-REAL-IP']);
}}}
But that's likely because you don't normally assign predefined variables
to constants.
Perhaps leave an example in wp-config.php commented out so that it's
discoverable?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9235#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list