2014/05/21 16:49:44 [error] 2724#2576: *619 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 27.13.47.158, server: csdigg.com, request: "GET /crond/run/1400662183 HTTP/1.1", upstream: "fastcgi://127.0.0.1:8080", host: "www.csdigg.com", referrer: "http://www.csdigg.com/search/q-MVA=" 2014/05/21 16:51:05 [error] 2724#2576: *624 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 27.13.47.158, server: csdigg.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:8080", host: "www.csdigg.com" #user nobody; worker_processes 2; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } 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; sendfile on; tcp_nopush on; tcp_nodelay on; server_tokens off; #keepalive_timeout 0; keepalive_timeout 180; #gzip on; server { listen 80; server_name csdigg.com; server_name www.csdigg.com; client_max_body_size 3m; #charset koi8-r; #access_log logs/host.access.log main; location / { root D:\data; index index.html index.htm index.php; location / { if (!-e $request_filename) { rewrite (.*) /index.php; } } } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { root D:\data; fastcgi_pass 127.0.0.1:8080; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } # another virtual host using mix of IP-, name-, and port-based configuration # #server { # listen 8000; # listen somename:8080; # server_name somename alias another.alias; # location / { # root html; # index index.html index.htm; # } #} # HTTPS server # #server { # listen 443 ssl; # server_name localhost; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_cache shared:SSL:1m; # ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # location / { # root html; # index index.html index.htm; # } #} }
AI智能回复搜索中,请稍后...
1 回答
更新 fastcgi_pass www.csdigg.com:8080; 为啥要用域名,直接影响整个访问速度,访问量一上来这里可能就会出现问题,除非你做了本地host的配置。