Nginx

[Nginx] SSL(HTTPS) Error 관련 Error Code 및 Redirect.

혀뇽뇽이·2019년 8월 2일·조회 23,933

Nginx SSL 에러 코드를 이용해서 http 요청이 https Port로 들어왔을 때, Redirect 시킬 수 있습니다.
이를 이용해서 http -> https Redirect를 손쉽게 적용 가능합니다.

예시: error_page 497 www.google.com

에러정보:

  • 495 : an error has occurred during the client certificate verification;
  • 496 : a client has not presented the required certificate;
  • 497 : a regular request has been sent to the HTTPS port.

관련링크: nginx.org/en/docs/http/ngx_http_ssl_module.html

댓글 1

로그인 후 댓글을 남길 수 있습니다.

  • 혀뇽뇽이혀뇽뇽이· 2019년 8월 2일
    내용이 수정해도 계속 다 없어지네요... Nginx SSL 에러 코드를 이용해서 http 요청이 https Port로 들어왔을 때, Redirect 시킬 수 있습니다. 이를 이용해서 http -> https Redirect를 손쉽게 적용 가능합니다. 예시: error_page 497 https://www.google.com 에러정보: 495 : an error has occurred during the client certificate verification; 496 : a client has not presented the required certificate; 497 : a regular request has been sent to the HTTPS port. 관련링크: http://nginx.org/en/docs/http/ngx_http_ssl_module.html