Skip to content

Instantly share code, notes, and snippets.

@liruqi
Created November 22, 2014 15:29
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liruqi/ee8c158700d4331053f6 to your computer and use it in GitHub Desktop.
Save liruqi/ee8c158700d4331053f6 to your computer and use it in GitHub Desktop.
nginx http proxy config
server {
listen 80;
server_name *.cn *.org *.com *.jp *.hk *.io *.info "";
client_body_timeout 60000;
client_max_body_size 1024m;
send_timeout 60000;
client_header_buffer_size 16k;
large_client_header_buffers 4 64k;
proxy_headers_hash_bucket_size 1024;
proxy_headers_hash_max_size 4096;
proxy_read_timeout 60000;
proxy_send_timeout 60000;
location / {
resolver 8.8.8.8;
proxy_pass http://$http_host$request_uri;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment