Skip to content

2011.03.18 10:54

mod_deflate 설정

조회 수 21464 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
아파치 2.x 부터는 웹사이트에서 나가는 데이터를 압축하는 모듈 (mod_deflate)가 있습니다.
 
요즘은 서버의 cpu가 여러개이기 때문에, 압축하는 것에 cpu를 좀 쓴다고 해서 문제 안되고
pc의 경우도 사양이 좋아져서, 압축된거 다시 푸는것에 크게 부담이 안됩니다.
 
송효진님의 설정을 보니까, css와 js를 압축하지 않는 것이 문제가 될 수 있겠더라구요.
그래서 압축하는 부분을 추가해서 설정을 변경했더니, 트래픽이 팍~~~ 줄어 들었습니다.
 
참조
 
httpd.conf에 다음처럼 설정하시면 됩니다.
 
<IfModule mod_deflate>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-javascript text/css
# 1(min) ~ 9(max)
DeflateCompressionLevel 9
 
# no gzip response.
BrowserMatch ^Mozilla/4 gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|bmp|zip|tar|rar|alz|a00|ace|txt|mp3|mpe?g|wav|asf|wma|wmv|swf|exe|pdf|doc|xsl|hwp|java|c|t?gz|bz2|7z)$ no-gzip dont-vary
</IfModule>

 

출처 : http://sir.co.kr/bbs/board.php?bo_table=pg_apache&wr_id=394

TAG •

  1. expires설정으로 브라우저캐시

    Date2009.04.18 ByADMINPLAY Views14796
    Read More
  2. h264 스트리밍 서버 구축(리눅스,아파치) (실시간 아님, ...

    Date2012.08.13 ByADMINPLAY Views17368
    Read More
  3. httpd.conf 파일에 대한 설명 / 번역

    Date2008.10.08 ByADMINPLAY Views14359
    Read More
  4. KeepAlive 설정 및 정의

    Date2012.01.16 ByADMINPLAY Views20038
    Read More
  5. make[2]: *** [htpasswd] 오류 1 , make[1]: *** [all-rec...

    Date2009.08.07 ByADMINPLAY Views27254
    Read More
  6. mod_deflate 설정

    Date2011.03.18 ByADMINPLAY Views21464
    Read More
  7. mod_gzip, mod_deflate

    Date2010.07.29 ByADMINPLAY Views19254
    Read More
  8. RedirectMatch (도메인포워딩)

    Date2009.01.23 ByADMINPLAY Views15602
    Read More
  9. rewrite 모듈을 이욜한 서브도메인으로 홈페이지 운영하기

    Date2009.11.26 ByADMINPLAY Views14328
    Read More
  10. SetEnvIf 지시어 설명 (mod_setenvif)

    Date2014.01.18 ByADMINPLAY Views7895
    Read More
  11. squid 로 웹서버 가속하기..---== 강추 ==---

    Date2009.11.26 ByADMINPLAY Views18364
    Read More
  12. SSL 인증서 발급 후 SSL mode 시작시 두 개의 패스워드 입...

    Date2009.10.15 ByADMINPLAY Views14299
    Read More
  13. Tomcat 4 과 Apache 2 연동

    Date2009.06.06 ByADMINPLAY Views14749
    Read More
  14. tomcat 에서 OutOfMemory에러가 발생할때

    Date2013.09.09 ByADMINPLAY Views8947
    Read More
  15. Unclean shutdown of previous Apache run?

    Date2009.08.05 ByADMINPLAY Views21941
    Read More
  16. WAS 란? WAS 뭐에요?

    Date2014.01.19 ByADMINPLAY Views11167
    Read More
  17. xcache 설치 (xcache-1.2.2.tar.gz)

    Date2009.03.17 ByADMINPLAY Views18482
    Read More
  18. [Apache] 2.4 버전에서 403 에러시 [authz_core:error AH0...

    Date2015.01.09 ByADMINPLAY Views7481
    Read More
  19. [Apache] MPM(Prefork VS Worker)

    Date2012.01.16 ByADMINPLAY Views19784
    Read More
  20. [LINUX] Apache 2.2 + mod jk 1.2 + Tomcat 5.x 연동

    Date2009.05.07 ByADMINPLAY Views21174
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234