nginx proxy Forward & Reverse Proxy

1, forward proxy

1. I can not access a website, but I was able to access a proxy server, the proxy server does, he can not visit the sites I visit

2. So I first connected to the proxy server, tell him I need that can not access the site's content, the proxy server to get back, and then return to me.

3. The client must set up forward proxy server, of course, the premise is to know the IP address of the forward proxy server, as well as port agent.

4. Before using, for example, through the example of such software CCproxy, http://www.ccproxy.com / configure the proxy address in the browser.

Forward proxy role:

1. Visit the original can not access resources such as google

2. You can do caching, to accelerate access to resources

3. Client Access Licensing, Internet authentication

4. The proxy can record user access records (access management), external users to hide information

2. Reverse Proxy

1. Reverse proxy transparent to the user, the client without any configuration to access services.

2. the actual operation mode refers to the proxy server to accept connection requests on the internet, and then forwards the request to the server on the internal network.

3. and returns the result obtained from the server to the client requesting a connection to the internet, when the external proxy server is a server performance.

3, reverse proxy usage scenarios

1. safety assurance within the network, you can use a reverse proxy WAF provides functionality to prevent web attacks

Example: large sites, usually as a reverse proxy to access the public network address, Web servers within the network

2. load balancing to optimize load site through reverse proxy server

Guess you like

Origin www.cnblogs.com/junjun511/p/11299361.html