문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
nginx:basic_config [2015/06/13 17:44] kwon37xi |
nginx:basic_config [2019/04/23 13:53] kwon37xi [서버 정보 숨기기] |
||
---|---|---|---|
줄 5: | 줄 5: | ||
====== 서버 정보 숨기기 ====== | ====== 서버 정보 숨기기 ====== | ||
- | 응답으로 오는 Server 헤더에 nginx 정보가 들어간다. 이를 숨기는 것이 좋다. | + | |
+ | * [[https:// | ||
+ | * 버전 번호만 삭제 < | ||
+ | // http, | ||
+ | server_tokens off; | ||
+ | </ | ||
+ | * '' | ||
+ | | ||
+ | </ | ||
+ | ====== timeout ====== | ||
< | < | ||
- | server_tokens off | + | send_timeout 60s; # 요청을 보낸 후 응답을 받기까지 대기 시간. 이 설정상 최소 60초 이내에 응답이 와야한다. |
</ | </ | ||
+ | |||
===== error_page ===== | ===== error_page ===== | ||
줄 48: | 줄 58: | ||
</ | </ | ||
* '' | * '' | ||
+ | |||
+ | ===== default charset ===== | ||
+ | * 서빙하는 파일들에 기본 charset 헤더('' | ||
+ | < | ||
+ | # charset_types 에 charset을 자동으로 붙여줄 mime type들 추가. text/ | ||
+ | charset_types text/xml text/plain text/css application/ | ||
+ | charset UTF-8; | ||
+ | </ | ||
===== 참조문서 ===== | ===== 참조문서 ===== | ||
* [[http:// | * [[http:// |