An example of nginx downloading server configuration

Source: Internet
Author: User
Tags sendfile
For nginx download server configuration example: root @ ubuntu:/# vim/etc/nginx. confevents {www.2cto. comworker_connections65535; useepoll;} http {log_formatf_nginx & quot; $ remote_addr '$ server_addr'
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 ;}}}
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.