Configure nginx anonymous forward http Proxy anonymous forwardproxy

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.