Welcome! Log In Create A New Profile

Advanced

Re: rewrite proxy flag set problem

March 27, 2012 01:20AM
On Tue, Mar 27, 2012 at 12:29:06AM -0400, niraj wrote:
> Hi
>
> Sorry for that Mess up.
>
> As u suggested I have added the following line
>
> location /auction/ {
> proxy_pass http://192.168.1.210;
>
> when I click into my application I got the error that I mentioned in
> earlier e-mail.
>
> that error log of original server (192.168.1.45) and there is no log
> for 192.168.1.210 error log file.
>
> this is the request that my application is sending to the Nginx
>
> auction?id=1332416535292370.0097187543142212
>
>
> In above example and as u suggested it will proxy or redirect the
> /auction folder query to the http://192.168.1.210;
>
> but you can see above request its not call the /auction folder.
>
> so we required to do something like auction(.*) am I correct ?
>
> And As I know proxy_pass not support the regular expression (.*) is
> it correct ?

You do not need regular expression in this case.
It seems you need just these two locations:

location = /auction {
proxy_pass http://192.168.1.210;
}

to proxy requests like "/auction?id=1332416535292370.0097187543142212"

And

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

to proxy "/auction/some/page" to "http://192.168.1.210/some/page".


--
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: 151
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready