[wp-trac] [WordPress Trac] #17096: WP_HTTP_Proxy :: Host check prevents proxying to local

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 20 02:57:19 UTC 2011


#17096: WP_HTTP_Proxy :: Host check prevents proxying to local
-----------------------------------+------------------------------
 Reporter:  jimmynguyc             |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  HTTP                   |     Version:  3.1
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+------------------------------

Comment (by jimmynguyc):

 Well in my case I needed the cron to loopback because resolving the
 hostname will point the request to another server, as the host file was
 hardcoded to a different server for the domain name.

 As mentioned I needed to do a proxypass of a certain subfolder to a
 different server, hence the hardcoded IP in /etc/hosts.

 It works fine as long as the request came from outside, but if a request
 came from the server (e.g. a cron task) it will be pointing to a different
 IP as per defined in /etc/hosts. Meaning that crons jobs will never be
 executed.

 Hence the hack and the WP_HTTP_PROXY workaround which I found is the only
 way to fix my problem.

 Any thoughts?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17096#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list