Need to proxy pass and rewrite the url

António P. P. Almeida appa at perusio.net
Fri Jan 20 14:24:45 UTC 2012


On 20 Jan 2012 10h04 WET, lists at ruby-forum.com wrote:

> my conf :
>
> location / {
> proxy_pass           http://mydomain.com;
> proxy_redirect       off;
> proxy_set_header     Host $host;
> }
>
> location ~*/redirect {
> proxy_pass           http://some.domain.com/cp/$1;
> }
>

This makes no sense. What do you want to capture in $1?

--- appa



More information about the nginx mailing list