[wp-trac] Re: [WordPress Trac] #9110: Wordpress 2.7.1 behind Apache
Proxy fails with incorrect hostname in URLs
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 12 10:19:10 GMT 2009
#9110: Wordpress 2.7.1 behind Apache Proxy fails with incorrect hostname in URLs
--------------------------+-------------------------------------------------
Reporter: GavinCameron | Owner: anonymous
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.7.2
Component: General | Version:
Severity: critical | Keywords:
--------------------------+-------------------------------------------------
Comment(by GavinCameron):
Replying to [comment:4 DD32]:
> I might've got those around the wrong way then.. Set them to the
internal URL's, The Proxy should re-write them to the external address..
Setting these to the internal URL doesn't work either.
>
> You can define them in your wp-config.php file as well if need be:
>
> {{{
> define('WP_SITEURL', "http://hostname/folder/");
> define('WP_HOME', "http://hostname/");
> }}}
Setting these still gives the same result.
>
> The issue is that WordPress see's the URL's as
"http://wordpressserver:1234/some-permalink/" which doesnt match "http
://some-external-hostname.com/some-permalink/", which causes a redirect,
etc.
Will commenting out
{{{
add_action('template_redirect', 'redirect_canonical');
}}}
actually cause an issue? Site seems to work correctly when it is commented
out.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9110#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list