One: Nginx as a proxy server:
1.1, Positive proxy: Proxy service can also be referred to as a forward proxy, refers to the server is deployed in the company's gateway, agent company internal staff Sisu Network request, can play a certain role in security and management restrictions, is not support from the external network to the intranet access to resources, generally rarely used.
Server {resolver8.8.8.8; Resolver_timeout 5s; Listen0.0.0.0:8080; Access_log/home/reistlin/logs/Proxy.access.log; Error_log/home/reistlin/logs/Proxy.error.log; Location/{proxy_pass $scheme://$host $request_uri;proxy_set_header Host $http _host; Proxy_buffers the4k; Proxy_max_temp_file_size0; Proxy_connect_timeout -; Proxy_cache_valid $ 30210m; Proxy_cache_valid3011h; Proxy_cache_valid any 1m; }}
1.2, Reverse proxy: Reverse proxy is also called reverse proxy, refers to the agent outside the network user's request to the internal designated Web server, and the data back to the user a way, which is used more a way.
Nginx Six: The reverse proxy function of Nginx server