nginx forward proxy

1 server
2 {
3       resolver 114.114.114.114;
4       listen 80;
5       location / {
6            proxy_pass http://$http_host$request_uri;        
7      }  
8 }

resolver: Specifies the DNS server.

proxy_pass: After the request reaches nginx, nginx accesses the address set by proxy_pass and returns the content in the same way.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325065681&siteId=291194637