[buddypress-trac] [BuddyPress] #4478: Allow setups behind proxy, by allowing filtering of bp_get_requested_url
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Fri Aug 31 11:13:19 UTC 2012
#4478: Allow setups behind proxy, by allowing filtering of bp_get_requested_url
-------------------------+------------------
Reporter: calin | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.7
Component: Core | Version: 1.6
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------
Changes (by calin):
* keywords: => has-patch
Comment:
Hi, this patch is useful for running buddypress behind a reverse proxy,
eg. have nginx frontend and apache as backend and not for making HTTP
requests using a proxy.
For example you can have a setup where buddypress runs on apache with
localhost as hostname and then you have a filter on wordpress's site_url
which turns all your http://localhost/members/foo/ to
http://example.com/members/foo/ and you proxy that through nginx, on
hostname example.com.
So user enters in his browser http://example.com/members/foo/, but the
request hits the apache backend with http://localhost/members/foo/ which
will issue a redirect to http://example.com/members/foo/ and you end up
with a loop.
This patch allows you to rewrite the actual requested URL in such cases.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4478#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list