RadarURL
Skip to content

안녕하세요.
현재 제 운영환경은
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

?

List of Articles
번호 제목 글쓴이 날짜 조회 수
» NGXMP 16.0 버전에서 Log에 upstream timed out (10060: 연결된 구성원으로부터 응답이 없어 연결하지 못했거나, 호스트로부터 응답이 없어 연결이 끊어졌습니다) while connecting to upstream, upstream: "fastcgi://127.0.0.1:9000" JaeSoo 2014.04.11 2010
20 504 Gateway Time-out using Nginx JaeSoo 2014.04.09 1728
19 Nginx, FastCGI 지시어 및 설명 (504 Gateway Time-out 관련 설정 등) JaeSoo 2014.04.09 2219
18 Nginx Log에서 upstream timed out (110: Connection timed out) while reading response header from upstream JaeSoo 2014.04.08 1496
17 nginx 504 gateway time-out JaeSoo 2014.04.08 1539
16 Nginx SERverSETting JaeSoo 2014.04.07 1609
15 Nginx에서 php 외에 추가로 여러 확장자를 처리 방법 JAESOO 2013.06.10 2901
14 Nginx 설치 (간략) JAESOO 2013.06.10 1693
13 Apache vs Nginx 성능을 밝혀라! JAESOO 2013.05.28 3636
12 아파치 2.4는 러시안 강호 NGINX를 넘을 수 있는가? JAESOO 2013.05.28 2791
11 nginx 재시작 배치파일 JaeSoo 2013.04.12 3210
10 NGINX서버를 통한 다운로드 링크 형성하기(POGOPLUG SERIES 4용) JaeSoo 2013.04.08 5301
9 nginx 에서 htaccess 사용하기 JaeSoo 2013.04.08 2873
8 Nginx HttpRewriteModule JaeSoo 2013.04.08 2793
7 Nginx 와 Apache 동시사용 설정 (영문) JaeSoo 2013.04.08 8865
6 Xpress engine nginx rewrite 설정, 짧은주소 (xpressengine) JaeSoo 2012.11.20 65734
5 NGINX 소개와 사용 현황 JaeSoo 2012.11.20 4819
4 강력한 웹서버 NGINX JaeSoo 2012.11.20 5068
3 Nginx 웹서버 성능분석 JaeSoo 2012.11.20 5733
2 제로보드XE(Xpressengine) Anti-accessXE:기본설정 JaeSoo 2012.07.26 3921
Board Pagination Prev 1 2 Next
/ 2

PageViews   Today : 814 Yesterday : 1026 Total : 21710721  /  Counter Status   Today : 584 Yesterday : 813 Total : 1140480

Edited by JAESOO

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소