rewrite proxy flag set problem

niraj nginx-forum at nginx.us
Mon Mar 26 11:39:56 UTC 2012


Hi 


  I have installed the catalyst and I am trying to integrate the same
with Nginx.

 rewrite /auction(.*)$ http://192.168.1.210$1;

the following rewrite rule is working for me right now. 

If I write rule that u mentioned then it will gives the error

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



The reason for error might is that because my request is just like..

http://192.168.1.45/auction?id=1332416535292370.0097187543142212

for that I required to write a regular expression 

 rewrite /auction(.*)$ http://192.168.1.210$1;   

Hope Now you understand my point clearly.

If required any other info then let me know.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,224274,224402#msg-224402



More information about the nginx mailing list