proxying/redirecting after request has been rewritten
mdounin at mdounin.ru
Wed Aug 8 15:38:18 UTC 2012
On Wed, Aug 08, 2012 at 11:04:25AM -0400, i0n wrote:
> Hi everyone.
> I'm trying to get Nginx to run some Regex's on requests and send them to
> another server block, returning the response headers from the second
> server block. At the moment I get a 302 response status, how do I get
> the headers from the second server block?
> So as an example, I would like a request like:
> to be sent to
> http://nginxrouting_destination.local/itemid=1234topicid=1234 returning
> the headers from the new location
Use proxy_pass. See http://nginx.org/r/proxy_pass for details.
More information about the nginx