사용자 도구

사이트 도구


nginx:proxy

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
nginx:proxy [2018/03/28 15:08]
kwon37xi [X-Forwarded-For]
nginx:proxy [2019/06/19 13:26] (현재)
kwon37xi [Tomcat 연동]
줄 23: 줄 23:
         proxy_cookie_path /example /;         proxy_cookie_path /example /;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 +        proxy_set_header X-Forwarded-Proto $scheme;
 +        proxy_set_header X-Real-IP $remote_addr; # ELB 등 중간자가 또 있을 경우에도 제대로 작동할까?
 +
         proxy_set_header Host $host;         proxy_set_header Host $host;
 +        proxy_read_timeout 60s; # 응답을 읽기까지의 타임아웃. send_timeout 과 함께 조정
     }     }
 } }
줄 53: 줄 57:
   * ''$http_[requestHeaderName]''이 요청 헤더 내용을 저장한 변수이다.   * ''$http_[requestHeaderName]''이 요청 헤더 내용을 저장한 변수이다.
   * [[http://xyduan.com/logging-request-reponse-header-to-nginx/|logging request and response header to nginx access log]]   * [[http://xyduan.com/logging-request-reponse-header-to-nginx/|logging request and response header to nginx access log]]
 +
 +===== Keep Alive =====
 +  * nginx - upstream 간에 Keep Alive 설정을 하는 것이 성능상 유리하다.
 +  * [[https://jojoldu.tistory.com/322|3. AWS Beanstalk을 이용한 성능 튜닝 시리즈 - Nginx 튜닝]]
 +  * [[https://brunch.co.kr/@alden/17|nginx + tomcat 연동에 대하여]]
 +  * [[https://brunch.co.kr/@alden/11|nginx upstream 성능 최적화]]
  
  
nginx/proxy.1522219130.txt.gz · 마지막으로 수정됨: 2018/03/28 15:08 저자 kwon37xi