For nginx download server configuration example: root @ ubuntu:/# vim/etc/nginx. conf events {export worker_connections 65535; use epoll;} http {log_format f_nginx "$ remote_addr '$ server_addr' $ server_protocol '$ request_method' $ server_port '$ bytes_sent' $ uri '? $ Query_string '$ status' $ request_time' [$ time_local] '$ http_referer' $ http_user_agent "; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 60; Limit 2048; Limit 128; client_header_buffer_size 4; www.2cto.com client_header_timeout 60; client_body_timeout 60; Limit 16 512 k; # limit 256 k; client_max_body_size 10 m; inclu De/etc/nginx/mime. types; default_type application/octet-stream; access_log/var/log/nginx/access. log; error_log/var/log/nginx/error. log; gzip on; gzip_min_length 1024; gzip_buffers 16 32 k; gzip_proxied any; gzip_types text/plain application/x-javascript text/css application/xml text/javascript; limit_zone ltone $ binary_remote_addr 10 m; server {listen 80; server_name test.com; access_log/test/ Ccess. log; error_log/test/error. log; www.2cto.com root/test; index index.htm; limit_conn 10; limit_rate 50 k; autoindex on; sendfile on; tcp_nopush on; expires 365d; location ^ ~ /Testdown/{root/test; limit_rate 800 k; autoindex on; sendfile on; tcp_nopush on; rewrite ^ (. *) $/test.gz break ;}}}