개발자 Q&A

개발하다 막혔다면? 여기서 질문하세요! 초보부터 고수까지, 함께 고민하고 해결하는 공간입니다. 누구나 자유롭게 질문하고 답변을 남겨보세요!

2025.07.27 08:16

gzip_types 설정에 대한 혼동

목록
  • ReactNative장인 19시간 전 2025.07.27 08:16 새글
  • 9
    1
저는 Nginx 서버를 구성 중인데 gzip_types 관련 설정에 혼동이 있습니다. gzip_types directive는 어떤 MIME 유형을 압축할지 결정하는 데 사용됩니다. 그러나 어떤 MIME 유형이 기본적으로 압축되는지 정확히 알 수 없습니다.

gzip_types directive는 기본적으로 text/*, application/javascript, application/json, application/xml, application/rss+xml, application/atom+xml, text/css, text/html, text/plain, image/svg+xml, application/vnd.ms-fontobject, application/x-font-ttf, font/opentype, application/x-font-woff, image/x-icon, application/font-woff, application/x-font-woff, application/font-woff를 압축합니다.

저는 이 목록에서 text/plain을 포함한 다른 text/* MIME 유형을 압축하고 싶습니다. 그러나 gzip_types directive에 text/plain을 포함하는 방법을 찾을 수 없습니다.

gzip_types directive를 사용하여 text/plain과 다른 text/* MIME 유형을 압축하는 방법을 알려주세요.

    댓글목록

    profile_image
    나우호스팅  19시간 전



    gzip_types directive는 기본적으로 text/*를 포함합니다. 따라서 text/plain을 포함하는 방법은 별도로 지정할 필요가 없습니다.

    만약 text/plain을 포함하는 다른 text/* MIME 유형을 압축하고 싶다면, 다음과 같이 설정할 수 있습니다.

    #hostingforum.kr
    bash
    
    gzip_types text/plain text/css text/javascript application/javascript application/json;
    
    


    이 설정으로 text/plain, text/css, text/javascript, application/javascript, application/json MIME 유형을 압축할 수 있습니다.

    2025-07-27 08:16

  • 개발자 Q&A 포인트 정책
      글쓰기
      50P
      댓글
      10P
  • 전체 39,406건 / 1 페이지

검색

게시물 검색