Nginx/Nginx 모듈 학습
ngx_http_empty_gif_module 모듈
hippo 데브옵스
2023. 9. 21. 00:14
- ngx_http_empty_gif_module 모듈은 단일 픽셀 투명 GIF를 전송
- ngx_http_empty_gif_module 모듈 : Module ngx_http_empty_gif_module (nginx.org)
Module ngx_http_empty_gif_module
Module ngx_http_empty_gif_module The ngx_http_empty_gif_module module emits single-pixel transparent GIF. Example Configuration location = /_.gif { empty_gif; } Directives Syntax: empty_gif; Default: — Context: location Turns on module processing in a su
nginx.org
empty_gif 지시자
- 주변 위치에서 모듈 처리를 켬
- 문맥 : location
- 사용 문법
# 문법 empty_gif;
empty_gif 예제 구성
- 파일이 없는 경우 단일 픽셀 투명 GIF 전송할 수 있도록 설정
location = /my_img { access_log off; empty_gif; }