Welcome! Log In Create A New Profile

Advanced

Error in setting nginx as Reverse proxy

Posted by bharath.sks 
Error in setting nginx as Reverse proxy
July 12, 2013 12:16PM
Hi All,

I am new to UNIX and i have few problem with setting up Nginx as reverse proxy.

The Url the user types is http://bharathsks.com/ektron/uploadedImages/Content/Organization/images/24276/facility/24276.png which first hits the Nginx server. Here i want my nginx to fetch the contents from http://my.iit.edu/uploadedImages/Content/Organization/images/24276/facility/24276.png

Basically Nginx will be doing 2 things one is proxying and the other one is rewriting the URL.

Below is my configuration file :

location /ektron{
rewrite /ektron/(.*) /$1 last;
proxy_pass http://my.iit.edu;
}

Can anyone help me how to fix this??
Re: Error in setting nginx as Reverse proxy
July 12, 2013 12:22PM
Thanks For help
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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