[sysadmin@docker_server conf]$ cat nginx.conf
#user  nobody;
worker_processes  1;
#pid        logs/nginx.pid;
events {
    worker_connections  65535;
}
# load modules compiled as Dynamic Shared Object (DSO)
#
dso {
    load ngx_http_fastcgi_module.so;
    load ngx_http_rewrite_module.so;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
    #access_log  logs/access.log  main;
    #access_log  "pipe:rollback logs/access_log interval=1d baknum=7 maxsize=2G"  main;
    sendfile        on;
    ##这个参数表示http连接超时时间,默认是65s。要是上传文件比较大,在规定时间内没有上传完成,就会自动断开连接!所以适当调大这个时间
    keepalive_timeout  100;
    #####
    client_header_timeout 120s;        #调大点
    client_body_timeout 120s;          #调大点
    client_max_body_size 100m;         #主要是这个参数,限制了上传文件大大小
    gzip  on;
    include vhosts/*;
}