프로그래밍 언어
nginx 버전 정보 숨기기
S

Lv.1 SDK

2018년 7월 27일 오후 08:16

조회 1 공감 0

https://www.ssllabs.com/ssltest/analyze.html?d=sundo.kim

nginx 정보가 ssl 사이트 등급 조회

그리고 get/post로 요청한 header에서 nginx 정보가

나온다는 회사 선배님의 감사한 제보가 있었습니다.

 

수정 파일

/etc/nginx/nginx.conf
http {

}
사이에 아래의 구문 추가

http {
...
  server_tokens off;
...
}

 
혹은

nginx-extras 설치

sudo apt-get install nginx-extras

https://stackoverflow.com/questions/24594971/how-to-changehide-the-nginx-server-signature

http {
...
more_set_headers "Server: Your_New_Server_Name";
server_tokens off;
...
}

 

댓글 (0)

  • 아직 댓글이 없습니다. 첫 댓글을 작성해보세요!

댓글을 작성하려면 이 필요합니다.

SDK .kr

개발 일상과 기술 노트. RSS 와 검색 엔진을 통해 발견될 자료들.

© 2026 SDK.kr — 코드 옆에 적어둔 기록들