Skip to content

Commit

Permalink
Create nginx-http.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
liyangyijie committed May 3, 2015
1 parent 60becd3 commit 331dd10
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions nginx/nginx-http.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#在http层设置缓存
http {
……
……
……
client_body_buffer_size 512k;
proxy_connect_timeout 5;
proxy_read_timeout 60;
proxy_send_timeout 5;
proxy_buffer_size 16k;
proxy_buffers 4 64k;
proxy_busy_buffers_size 128k;
proxy_temp_file_write_size 128k;
proxy_temp_path /home/cache/temp;#绝对路径 需要读写权限
proxy_cache_path /home/cache/path levels=1:2 keys_zone=cache_one:10m inactive=7d max_size=1g;
……
……
……
}

0 comments on commit 331dd10

Please sign in to comment.