how Nginx proxy works

≯℡__Kan透↙ 提交于 2021-02-10 16:18:59

问题


I'm just curious about how nginx proxy works.

I have two servers, one for frontend and another for storing files.

currently all download links looks like this

http://server2.com/examplefile.zip

instead if I enable nginx (server 1) to proxy requests to server 2, so the links will look like

http://server1.com/proxy/examplefile.zip

but if I do that, does both servers consume bandwidth?

if a user downloads a 1 GB file via nginx proxy does both servers consume 1 gb bandwidth or just server 2 consume bandwidth?


回答1:


This depends on the settings of the servers (e.g. whether things are cached), and their location relative to each other (as well as the traffic accounting used by your hosting provider).



来源:https://stackoverflow.com/questions/20993677/how-nginx-proxy-works

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!