메모용 개발 블로그
  • Home

Categories

  • All Posts116
  • OS35
    • Linux23
    • MacOS8
    • Windows4
  • 데이터베이스3
    • Oracle1
    • Postgresql1
  • Develop26
    • CSS33
    • Go8
    • HTML52
    • Java1
    • JavaScript4
    • React2
    • Svelte2
  • 개발일기10
  • Docker1
  • Git3
  • GitLab12
  • Nginx7
  • 기타16
  • 이 블로그의 오픈소스3
Nginx•2023년 2월 7일

Nginx [warn] the "ssl" directive is deprecated 수정

Table of Contents

  • Nginx [warn] the "ssl" directive is deprecated 수정

nginx 문법 검사를 돌리면 다음과 같은 경고문이 나온다.

➜  /bin sudo nginx -t
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /opt/nginx/conf/sites-enabled/설정파일.conf:51

nginx 설정 중 다음과 같은 구문이 존재한다.

ssl on;

이 부분이 현재 사용하지 않는 상태가 된 것이고 불필요한 문장이니 제거하면 된다.

대신 다음과 같이 ssl임을 명시한다.

listen 0.0.0.0:443 ssl;

다음과 같이 해당 경고문이 제거되었다.

➜  /bin sudo nginx -t
nginx: the configuration file /opt/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /opt/nginx/conf/nginx.conf test is successful
← Back to all posts