[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 03:04:57 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 dd32):
Ultimately, If the IP address of current site is redirected elsewhere,
it's not going to end well..
The "common" way to do that would be have the other server named
differently eg:
{{{
ServerName mysite.com
ProxyPass /special http://www2.mysite.com/special
}}}
that way DNS hacking isn't needed.
The Proxy support in core is designed for outgoing requests, rather than
loopback requests.
In your case, I'd be filtering outgoing HTTP requests, If it's for the
current domain, alter the request to goto http://127.0.0.1/ and force a
Host header.. [http://wordpress.org/extend/plugins/wordpress-beta-tester/
WordPress Beta Tester] plugin intercepts connections and rewrites them,
you might be able to do something similar.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17096#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list