[wp-trac] [WordPress Trac] #14075: some url are wrong when REQUEST_URI are different in host and proxy

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 24 16:49:22 UTC 2010


#14075: some url are wrong when REQUEST_URI are different in host and proxy
--------------------------+-------------------------------------------------
 Reporter:  gamboz        |       Owner:                      
     Type:  defect (bug)  |      Status:  new                 
 Priority:  normal        |   Milestone:  Unassigned          
Component:  General       |     Version:                      
 Severity:  normal        |    Keywords:  proxy url-generation
--------------------------+-------------------------------------------------
 Some url strings are generated with the host REQUEST_URI instead of the
 proxy REQUEST_URI (that is also set up in "WordPress address" and "Site
 address" variables under "Settings").

 How to replicate:
 . download the tar.gz for v. 3.0

 . install under /some/path/AAA on host X

 . configure apache2 on X with "Alias /AAA /some/path/AAA"

 . install wordpress via web interface

 . modify "WordPress address" and "Site address" variables under "Settings"
 to report "http://Y/BBB

 . go to machine Y

 . configure apache2 as a proxy/gateway:
     ProxyPass /BBB http://X/AAA
     ProxyPassReverse /BBB http://X/AAA

 . navigate to http://Y/BBB  (all well)

 . navigate to http://Y/BBB/wp-admin/options-general.php
   the input field
   <input type="hidden" name="_wp_http_referer"...
   will have value:
   value="/AAA/wp-admin/options-general.php"

 (some other places also).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14075>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list