RadarURL

NGXMP 16.0 버전에서 Log에 upstream timed out (10060: 연결된 구성원으로부터 응답이 없어 연결하지 못했거나, 호스트로부터 응답이 없어 연결이 끊어졌습니다) while connecting to upstream, upstream: "fastcgi://127.0.0.1:9000"

by JaeSoo posted Apr 11, 2014
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

안녕하세요.
현재 제 운영환경은
OS : Win7 64bit
APM : NGXMP 16.0
사용하고 있습니다.
가상 호스트가 28개 정도 됩니다.

 

처음 설치후 잘 되는가 싶었는데
Log에 upstream timed out (10060: 연결된 구성원으로부터 응답이 없어 연결하지 못했거나, 호스트로부터 응답이 없어 연결이 끊어졌습니다) while connecting to upstream, upstream: "fastcgi://127.0.0.1:9000"
위와 같은 오류가 발생하네요.

브라우저로 접속하면 한참정도 접속 시도를 하다가
504 Gateway Time-out
오류가 나면서 접속이 되지 않습니다.

 

혹시 해당 오류 해결하신분 계실런지요..


==nginx.conf
###########################################
#
# NGXMP 설정 파일
# By totoru ( http://ncafe.kr )
#
###########################################

# 프로세서
# 윈도우에서는 이값을 1로 지정하셔야됩니다.
# 이값은 변경하지 마세요.
worker_processes 1;
worker_rlimit_nofile 10240;

# PCRE JIT
pcre_jit on;

events {
 # 동시 접속자수 기본값 1024명
 # 최대 8192명까지 되도록 컴파일되어있습니다.
 # 최대값 8192 이상은 지정하지마세요. 8192이하의 값을 지정하세요.
 # 수치가 높을수록 메모리도 그만큼 사용됩니다.
 #worker_connections 4096;
 worker_connections 8192;
}

http {
 include mime.types;
 default_type application/octet-stream;
 sendfile on;
 server_tokens off;
  server_names_hash_max_size 512;
  server_names_hash_bucket_size 64;
 # 타임아웃
 keepalive_timeout 15;
 # php 파일 업로드 크기 기본 4096MB 더 큰 파일시 조정하세요.
 client_max_body_size 4096m;
 
 # gzip 압축전송(웹페이지 속도가 빨라집니다) 기본값 On
 gzip on;
 gzip_comp_level 6;
 gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
 gzip_vary on;
 gzip_disable "MSIE [1-6].(?!.*SV1)";

 # DDOS
 #limit_conn_zone $binary_remote_addr zone=ddos:10m;
 #limit_conn ddos 50;
 #limit_req_zone $binary_remote_addr zone=phpddos:10m rate=15r/s;


 # GeoIP 사용시 주석제거..
 #geoip_country D:/NGXMP/server/php/GeoIP.dat;

 # index 파일명
 index index.html index.htm index.php;

 server {
  # 포트
  listen 80;
  # 도메인 호스트 네임
  server_name localhost;
 
  # 홈 디렉토리
  root D:/NGXMP/www;
  
  # etc 인클루드
  include etc.conf;

  # php 설정
  location ~ .php$ {
   # 해킹될수가있어 try_files $uri =404; 추가함
   try_files $uri =404;
   fastcgi_pass 127.0.0.1:9000;
   fastcgi_read_timeout 300;
   fastcgi_index index.php;
   fastcgi_intercept_errors on;
   fastcgi_ignore_client_abort on;
   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
   include fastcgi_params;
   #limit_req zone=phpddos burst=2;
  }
 }
 
 # SSL 시작
 # SSL 서버 사용시 주석 제거
# server {
#  listen 443;
#  server_name  localhost;
#  ssl on;
#  ssl_certificate D:/NGXMP/server/nginx/conf/ssl/localcert.crt;
#  ssl_certificate_key D:/NGXMP/server/nginx/conf/ssl/localkey.key;
#  ssl_client_certificate D:/NGXMP/server/nginx/conf/ssl/cacert.crt;
#  ssl_session_timeout 5m;
#  ssl_protocols  SSLv2 SSLv3 TLSv1;
#  ssl_ciphers  HIGH:!aNULL:!MD5;
#  ssl_prefer_server_ciphers on;
#  ssl_session_cache shared:SSL:10m;
#
#  root D:/NGXMP/www;

#  # php 설정
#  location ~ .php$ {
#   # 해킹될수가있어 try_files $uri =404; 추가함
#   try_files $uri =404;
#   fastcgi_pass 127.0.0.1:9000;
#   fastcgi_read_timeout 300;
#   fastcgi_index index.php;
#   fastcgi_intercept_errors on;
#   fastcgi_ignore_client_abort on;
#   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#   fastcgi_param HTTPS on;
#   include fastcgi_params;
   #limit_req zone=phpddos burst=2;
#  }
# }
# SSL 설정 끝

 # 가상 호스트 설정파일
 # 사용시 아래 #을 제거하신후 D:/NGXMP/server/nginx/conf/virtualhost.conf 에서 셋팅하면됩니다.
 include virtualhost.conf;
}


==proxy.inc
proxy_connect_timeout   600;
proxy_send_timeout      600;
proxy_read_timeout      600;
send_timeout         600;
proxy_buffer_size       64k;
proxy_buffers           16 32k;
proxy_pass_header       Set-Cookie;
proxy_redirect          off;
proxy_hide_header       Vary;

proxy_busy_buffers_size         64k;
proxy_temp_file_write_size      64k;

proxy_set_header        Accept-Encoding         '';
proxy_ignore_headers    Cache-Control           Expires;
proxy_set_header        Referer                 $http_referer;
proxy_set_header        Host                    $host;
proxy_set_header        Cookie                  $http_cookie;
proxy_set_header        X-Real-IP               $remote_addr;
proxy_set_header        X-Forwarded-Host        $host;
proxy_set_header        X-Forwarded-Server      $host;
proxy_set_header        X-Forwarded-For         $proxy_add_x_forwarded_for;
proxy_set_header        X-Forwarded-Ssl         on;
proxy_set_header        X-Forwarded-Proto       https;

 

==virtualhost.conf
################################
#
# NGXMP 가상 호스트 설정파일
# 아래 예제를 적절히 수정해서 사용하세요.
# 경로및 도메인 수정..
#
################################

# xxx.kr 가상 호스트
server {
 # 포트
 listen 192.168.0.80:80;
 
 # 호스트 네임
 server_name xxx.kr;
 server_name www.xxx.kr;
 server_name web.xxx.kr;
 
 # 홈 디렉토리
 root D:/NGXMP/www/xxx/xe;
 
 # etc 인클루드
 include etc.conf;
 
 # rewrite 설정 인클루드
 include rewrite_xe.conf; 
 
 # aliase 설정
 location /dbadmin {
   alias D:/NGXMP/server/php/phpMyAdmin;
 } 
 
 # php 설정
 location ~ .php$ {
 # 해킹될수가있어 try_files $uri =404; 추가함
 try_files $uri =404;
 fastcgi_pass 127.0.0.1:9000;
 fastcgi_read_timeout 120;
 fastcgi_index index.php;
 fastcgi_intercept_errors on;
 fastcgi_ignore_client_abort on;
 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 include fastcgi_params;
 #limit_req zone=phpddos burst=2;
 }
}
.
.
.
.

 

링크 : http://dev.naver.com/projects/ngxmp/issue/76093