Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14075 closed defect (bug) (duplicate)

some url are wrong when REQUEST_URI are different in host and proxy

Reported by: gamboz's profile gamboz Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords: proxy url-generation
Focuses: Cc:


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:

(some other places also).

Change History (2)

#1 @gamboz
14 years ago

similar (same?) as 11136

#2 @nacin
14 years ago

  • Milestone Unassigned deleted
  • Resolution set to duplicate
  • Status changed from new to closed

I'd say so. My comment on #11136 is the same as I was going to write here -- shouldn't the server be fixing up variables? Not unlike accounting for X_FORWARDED_FOR and setting REMOTE_ADDR as appropriate.

Note: See TracTickets for help on using tickets.