[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:07:33 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 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..

 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/");
 }}}

 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.

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


More information about the wp-trac mailing list