Welcome! Log In Create A New Profile

Advanced

Re: rewrite proxy flag set problem

March 27, 2012 09:02AM
On Tue, Mar 27, 2012 at 08:47:57AM -0400, niraj wrote:
> Hi
>
> For that auction proxy_pass working but now
>
> I have request like
>
> /user/ongoingra/display_ra_list?from_period=&to_period=&type=20
>
> I want to redirect this query for that I have added the following
>
> location =/user/ongoingra/ {
> proxy_pass http://192.168.1.210/user/ongoingra/;
> }
>
> or
>
> location =/user {
> proxy_pass http://192.168.1.210/user;
> }
> or
>
> location /user/ongoingra {
> proxy_pass http://192.168.1.210/user/ongoingra;
> }
>
>
> but I am not able to get the result of the following request
>
> /user/ongoingra/display_ra_list?from_period=&to_period=&type=20
> just like the same other request also
>
> i.e. /user/completedra/display_ra_list?type=20
>
>
> Please suggest which rule will fulfill my request to redirect ?

It seems you did not read location documentation:

Also, using the "=" prefix it is possible to define an exact
match of URI and location.

Obviously "/user/ongoingra/" and "/user" do not match exactly
"/user/ongoingra/display_ra_list".

Also "location /user/ongoingra" matches "/user/ongoingra/display_ra_list",
but does not match "/user/completedra/display_ra_list".

Where should these URLs be proxied to ?
Probably, you need

location /user {
proxy_pass http://192.168.1.210;
}


--
Igor Sysoev

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

rewrite proxy flag set problem

niraj March 23, 2012 07:16AM

Re: rewrite proxy flag set problem

Maxim Dounin March 23, 2012 07:52AM

Re: rewrite proxy flag set problem

niraj March 24, 2012 07:48AM

Re: rewrite proxy flag set problem

niraj March 26, 2012 05:41AM

Re: rewrite proxy flag set problem

Jonathan Matthews March 26, 2012 07:06AM

Re: rewrite proxy flag set problem

niraj March 26, 2012 07:39AM

Re: rewrite proxy flag set problem

Jonathan Matthews March 26, 2012 07:58AM

Re: rewrite proxy flag set problem

niraj March 26, 2012 08:27AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 12:29AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 01:22AM

Re: rewrite proxy flag set problem

Jonathan Matthews March 26, 2012 09:40AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 01:20AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 01:26AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 01:47AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 01:54AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 02:07AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 02:52AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 02:18AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 04:06AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 04:50AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 04:56AM

Re: rewrite proxy flag set problem

niraj March 27, 2012 08:47AM

Re: rewrite proxy flag set problem

niraj March 28, 2012 01:31AM

Re: rewrite proxy flag set problem

niraj April 09, 2012 04:26AM

Re: rewrite proxy flag set problem

Igor Sysoev March 27, 2012 09:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
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