I'm using an Ubuntu 13.10 Server with LEMP stack. I have a Main server and a server that only has images stored on it. I want to point a local reference path: images/folder_name/img.png
which would resolve as http://www.server1.com/images/folder_name/img.png
to the same path but on a different directory http://img.server2.com/images/differen_folder_name/img.png
.
Essentially, I want http://www.server1.com/folder/img.png
to actually look up http://www.server2.com/folder/img.png
.
Is there an NGINX configuration or something I can use to make this work?