Welcome! Log In Create A New Profile

Advanced

Re: Need to proxy pass and rewrite the url

António P. P. Almeida
January 20, 2012 09:26AM
On 20 Jan 2012 10h04 WET, lists@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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Need to proxy pass and rewrite the url

kamalakar v. January 20, 2012 05:06AM

Re: Need to proxy pass and rewrite the url

António P. P. Almeida January 20, 2012 09:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready