rewrite proxy flag set problem

Maxim Dounin mdounin at mdounin.ru
Fri Mar 23 11:50:51 UTC 2012


Hello!

On Fri, Mar 23, 2012 at 07:16:37AM -0400, niraj wrote:

> Hi
> 
>       I have write a one rewrite rule as below
> 
> rewrite /auction(.*)$ http://192.168.1.210$1;
> 
> This rewrite rule working fine for me. 
> 
> but the problem is it show the Ip address 192.168.1.210 also.
> 
> I want to hide this IP , for that in apache flage [P] is there. 
> 
> but Nginx I dont know how to set proxy flag [P]. Please guide for the
> same.

Use 

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

instead.

Maxim Dounin



More information about the nginx mailing list