Configure nginx anonymous forward http Proxy anonymous httpproxy? Anonymous forwardproxy parameter explanation resolver114.114.114.114 ;?? # You can specify multiple dns servers and separate them with spaces. resolver_timeout30s ;? # Dns resolution timeout. proxy_pass $ scheme: $ host $ request_uri ;? # Forward proxy. # proxy_set
Configure nginx anonymous forward http proxy anonymous http proxy? Anonymous forward proxy parameter explanation resolver 114.114.114.114 ;? ? # You can specify multiple dns servers and separate them with spaces. resolver_timeout 30 s ;? # Dns resolution timeout. proxy_pass $ scheme: // $ host $ request_uri ;? # Forward proxy. # proxy_set
Configure nginx anonymous forward http proxy anonymous http proxy? Anonymous forward proxy
Parameter description
Resolver 114.114.114.114 ;? ? # You can specify multiple dns servers and separate them with spaces.
Resolver_timeout 30 s ;? # Dns resolution timeout.
Proxy_pass $ scheme: // $ host $ request_uri ;? # Forward proxy.
# Proxy_set_header X-Forwarded-For $ proxy_add_x_forwarded_for ;? ? # Does the configuration record the client address and the multi-level proxy server address .? I tested that this feature is enabled by default. If you want to configure an anonymous http proxy, do not write this line.
Proxy_hide_header X-Forwarded-;? ? # Remove and hide the real client address. Multi-level proxy server, pre-proxy server address, and so on .? In this way, the configuration is an anonymous proxy.
The following is my configuration.
server { listen 8080; location / { resolver 114.114.114.114; resolver_timeout 30s; proxy_pass $scheme://$host$request_uri; #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_hide_header X-Forwarded-For; } access_log /data/wwwlogs/httplogs/proxy-access.log;}
Original article address: Configure nginx anonymous forward to http proxy anonymous forward proxy. Thank you for sharing it with the original author.