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??