windows 2008安装 nginx 出现 A error occurred错误,今天公司为chinaobd2.com 网站新购一服务器,WIN2008系统 64位, 在安装nginx后,发现在手机和电脑同时访问网站的时候,就会出现A error occurred 的错误, 显然是并发量太小的原因. 第一次接入nginx, 只知道可以反向代理,方便在WIN2008实现多网站 SSL证书安装,但是随着NGINX的安装,新问题又出现了,一个接一个。
# 2019.05.23 worker_processes 4; error_log logs/error.log warn; pid logs/nginx.pid; worker_rlimit_nofile 51200; events { worker_connections 51200; multi_accept on; } http { include mime.types; default_type application/octet-stream; server_names_hash_bucket_size 128; client_header_buffer_size 32k; large_client_header_buffers 4 32k; # too big header proxy_buffer_size 128k; proxy_buffers 32 128k; client_max_body_size 1024m; client_body_buffer_size 10m; sendfile on; tcp_nopush on; keepalive_timeout 120; server_tokens off; tcp_nodelay on; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_buffer_size 64k; fastcgi_buffers 4 64k; fastcgi_busy_buffers_size 128k; fastcgi_temp_file_write_size 128k; fastcgi_intercept_errors on; # other set proxy_store off; proxy_redirect off; proxy_read_timeout 120; ignore_invalid_headers off; proxy_buffering off; gzip on; server { listen 80; server_name localhost; if ($host ~* "\d+\.\d+\.\d+\.\d+") { return 403; } location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_pass http://127.0.0.1:80; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; } } include vhost/*.conf; }
以上是我们安装后自动生成的nginx.conf配置文件,目前问题还没得到解决,希望有经验的高手看到后,能指点一二,看怎样解决nginx并发问题, 我们还有一个CNC Foam Cutting Machine 的网站,任然有这个问题,希望能尽快解决。