Skip to content

feat: nginx 버전 정보 제거 #366#367

Merged
Han-Joon-Hyeok merged 1 commit intomainfrom
feat/nginx-server-헤더-버전-정보-제거#366
Mar 25, 2025

Hidden character warning

The head ref may contain hidden characters: "feat/nginx-server-\ud5e4\ub354-\ubc84\uc804-\uc815\ubcf4-\uc81c\uac70#366"
Merged

feat: nginx 버전 정보 제거 #366#367
Han-Joon-Hyeok merged 1 commit intomainfrom
feat/nginx-server-헤더-버전-정보-제거#366

Conversation

@Han-Joon-Hyeok
Copy link
Contributor

@Han-Joon-Hyeok Han-Joon-Hyeok commented Mar 25, 2025

개요

백엔드 API 요청 시 반환되는 응답의 header 중에서 Server 속성에 nginx의 버전이 아래와 같이 표시되고 있었습니다.

Image

버전 노출에 따른 보안 공격을 방지하기 위해 버전을 표시하지 않도록 nginx 설정 파일을 수정합니다.

작업 내용

nginx.conf 파일에서 server_tokens 옵션을 off로 설정했습니다.

server_tokens off;

아래와 같이 nginx의 버전이 표시되지 않도록 수정했습니다.

image

참고자료

@Han-Joon-Hyeok Han-Joon-Hyeok added the enhancement New feature or request label Mar 25, 2025
@Han-Joon-Hyeok Han-Joon-Hyeok self-assigned this Mar 25, 2025
@Han-Joon-Hyeok Han-Joon-Hyeok linked an issue Mar 25, 2025 that may be closed by this pull request
@Han-Joon-Hyeok Han-Joon-Hyeok merged commit d1ab98a into main Mar 25, 2025
1 check passed
@Han-Joon-Hyeok Han-Joon-Hyeok deleted the feat/nginx-server-헤더-버전-정보-제거#366 branch March 25, 2025 03:20
Copy link
Contributor

@solgito solgito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] nginx 'Server' 헤더 버전 정보 제거

2 participants