Home > Article > Backend Development > Nginx Wiki (outdated latest: http://nginxorg/en/docs/)
location / { proxy_pass http://localhost:8000; proxy_set_header X-Real-IP $remote_addr;}
proxy_bind 192.168.1.1;
proxy_cache_bypass $cookie_nocache$arg_nocache$arg_comment; proxy_cache_bypass $http_pragma$http_authorization;
proxy_cache_bypass $http_my_secret_header;
proxy_cache_key "$host$request_uri$cookie_user";
proxy_cache_key "$scheme$host$request_uri";
proxy_cache_methods POST;
proxy_cache_path /data/nginx/cache/one levels=1:2 keys_zone=one:10m;
/data/nginx/cache/c/29/b7f54b2df7773722d382f4809d65029c
proxy_cache_path /data/nginx/cache/one levels=1 keys_zone=one:10m; proxy_cache_path /data/nginx/cache/two levels=2:2 keys_zone=two:100m; proxy_cache_path /data/nginx/cache/three levels=1:1:2 keys_zone=three:1000m;
proxy_cache_valid 200302 10m; proxy_cache_valid 404 1m;
proxy_cache_valid 5m;
proxy_cache_valid 200302 10m; proxy_cache_valid 301 1h; proxy_cache_valid any 1m;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
location / { proxy_hide_header X-AspNet-Version; proxy_hide_header MicrosoftOfficeWebServer;}
location / { proxy_pass http://backend_servers;} location /files/ { proxy_pass http://fileserver; proxy_hide_header Content-Type;}
proxy_method POST;
proxy_no_cache $cookie_nocache$arg_nocache$arg_comment; proxy_no_cache $http_pragma$http_authorization;
proxy_pass http://localhost:8000/uri/;
proxy_pass http://unix:/path/to/backend.socket:/uri/;
proxy_set_header Host $host;