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 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | proxy url-generation |
Focuses: | Cc: |
Description
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).
Change History (2)
#2
@
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.
similar (same?) as 11136