How to configure a local web folder to a remote server in Nginx?

by KDX   Last Updated February 09, 2017 14:01 PM

How do I map a web folder on Server-A to a remote folder on Server-B?

I'm using Nginx as web server.

What I would like to accomplish is to offload the bandwidth of Server-A to Server-B.

http://server-a/images/pic.jpg

will map/redirect to:

http://server-b/images/pic.jpg

Where http://server-a/images/pic.jpg doesn't even need to actually be exist.

I don't want to use a proxy as it's pulling bandwidth from Server-B -> Server-A -> End-User

I also don't want to use a 3rd party CDN in this case, because I would like to have custom access control and rules configured in Nginx.

I would like the image to be served directly from Server-B -> End-User.

Can this be done?



Related Questions





How to point all domain with ELB dns

Updated April 20, 2015 20:01 PM