Nginx windows configuration

Source: Internet
Author: User
Tags epoll
# Users and Groups used by Nginx, not specified in the window # userniumdniumd; # Number of working sub-processes (usually equal to the number of CPUs or twice the CPU) worker_processes8; # error log storage path # error_loglogs/error. log; # error_loglogs/e...
# Users and Groups used by Nginx, not specified in the window # user niumd; # Number of working sub-processes (usually equal to the number of CPUs or twice the CPU) worker_processes 8; # error log storage path # error_log logs/error. log; # error_log logs/error. log notice; error_log logs/error. log info; # specify the pid to store the file pid logs/nginx. pid; events {# epoll is recommended for linux using the network I/O model. FreeBSD recommends that epoll be used for -www.2cto.com-and kqueue, which is not specified for Windows. # Use epoll; # maximum number of connections allowed worker_connections 2048;} http {include mime. types; default_type application/octet-stream; # define Log Format # 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 off; access_log logs/access. log; client_header_timeout 3 m; client_body_timeout 3 m; send_timeout 3 m; Client_header_buffer_size 1 k; large_client_header_buffers 4 4 k; sendfile on; tcp_nopush on; tcp_nodelay on; # keepalive_timeout 75 20; # include gzip. conf; upstream localhost {# allocate requests to the backend tomcat based on ip computing. many people mistakenly believe that the session problem can be solved. # The ip address of a route switch may be different for multiple networks of the same machine # ip_hash; server localhost: 8080; # server localhost: 18080;} server {listen 80; server_name localhost; location/{proxy_pass http://localhost ; }}} Author zhyxfancy
Related Article
Large-Scale Price Reduction
  • 59% Max. and 23% Avg.
  • Price Reduction for Core Products
  • Price Reduction in Multiple Regions
undefined. /
Connect with us on Discord
  • Secure, anonymous group chat without disturbance
  • Stay updated on campaigns, new products, and more
  • Support for all your questions
undefined. /
Free Tier
  • Start free from ECS to Big Data
  • Get Started in 3 Simple Steps
  • Try ECS t5 1C1G
undefined. /

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.