当前位置:网站首页>Proxy and reverse proxy

Proxy and reverse proxy

2022-07-06 21:15:00 InfoQ

What is agency ?
Forward agency , It's the legendary agent , He works like a springboard ( I feel like this is how the company's server springboard machine plays ). I'm a user , I can't visit a website , But I can access a proxy server . What about the proxy server , He can visit the website that I can't . So I connect to the proxy server first , Tell him I need content that I can't access the site . Proxy server to get it back , And then back to me . From a website point of view , There is only one record when the proxy server comes to retrieve the content . Sometimes I don't know it's the user's request , It also hides the user's information , It depends on whether the agent tells the website . The conclusion is that   The forward proxy is one located on the client and the original server (origin server) Server between , To get content from the original server , The client sends a request to the agent and specifies the destination ( Original server ), The agent then forwards the request to the original server and returns the obtained content to the client . The client must make some special settings to use the forward proxy .
Reverse proxy
User access  
http://ooxx.me/readme
. but ooxx.me There is no such thing as readme page . He stole it from another server , Then spit it out to users as their own content . But users don't know , This is normal , Users are usually stupid . As mentioned here  ooxx.me  The server corresponding to this domain name has the reverse proxy function
The conclusion is that   Reverse proxy is the opposite , It's like a raw server to the client , And the client does not need to make any special settings . Client to reverse proxy   The namespace of (name-space) The content in sends a normal request , Then the reverse agent will determine where ( Original server ) Forward the request , And return the obtained content to the client , It's like this   It's the same as itself .
Conclusion
The typical use of forward proxy is to provide access for LAN clients in the firewall Internet Way . The forward proxy can also use the buffering feature to reduce network usage . The typical use of reverse agents is to   The server behind the firewall is provided to Internet User access . The reverse proxy can also provide load balancing for multiple servers on the back end , Or provide buffering services for servers with slower backend . in addition , The reverse agent can also enable advanced URL Strategy and management technology , To make a difference web Server system web The page exists in the same URL Under space . In terms of security : The forward proxy allows clients to access any website through it and hide the client itself , So you have to take security measures to ensure that only authorized clients are served . Reverse agents are transparent to the outside , Visitors don't know they're visiting an agent .
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061253467050.html