User Tools

Site Tools


henergy:architecture:gateway-nginx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

henergy:architecture:gateway-nginx [2026/02/21 01:43] 192.168.0.1henergy:architecture:gateway-nginx [2026/02/21 01:47] (current) 192.168.0.1
Line 1: Line 1:
 ====== Gateway(Nginx) 라우팅 구조 ====== ====== Gateway(Nginx) 라우팅 구조 ======
  
-===== 구성 ===== +===== 파일 조 ===== 
-  * 운영: WEB1 / WEB2 이중 운영 +  * 라우팅
-  * 핵심 라우팅 파일+
     * ''http2http.conf''     * ''http2http.conf''
     * ''https2http.conf''     * ''https2http.conf''
     * ''https2https.conf''     * ''https2https.conf''
-  * 공통 정책+  * 공통정책
     * ''ssl-common.conf''     * ''ssl-common.conf''
     * ''proxy-common.conf''     * ''proxy-common.conf''
     * ''internal_ips.conf''     * ''internal_ips.conf''
  
-===== 라우팅 원칙 ===== +===== 라우팅 흐름 ===== 
-  Host 헤더 기준 백엔드 분기 +<code> 
-  - 공통 SSL/Proxy 정책 재사용 +Host Header 수신 
-  설정 변경은 WEB1/WEB2 동시 반영 + diff 검증 필수+  -> server_name 매칭 
 +    -> upstream/proxy_pass 분기 
 +      -> backend health 확인 
 +</code>
  
-===== 점검 포트 ===== +===== 장애 시 우선 확인 ===== 
-  - 신규 도메인 추가 시 proxy 대상/health 확인 +  - 404: server_name 미매칭/라우팅 누락 
-  - 404/502 발생 시 DNS → Nginx → Backend 순서로 추적+  - 502/504: upstream down, 포트/방화벽/timeout
  
henergy/architecture/gateway-nginx.1771638194.txt.gz · Last modified: by 192.168.0.1