Skip to content

2011.03.18 10:54

mod_deflate 설정

조회 수 21236 추천 수 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. apache server 2.2, Tomcat5.5 로드밸런싱 및 클러스터

    Date2009.12.10 ByADMINPLAY Views19120
    Read More
  2. 아파치 컴파일 에러(apr-util) configure: error: cannet ...

    Date2009.08.08 ByADMINPLAY Views19574
    Read More
  3. apache + oracle (오라클 DB 한글깨짐)

    Date2010.02.24 ByADMINPLAY Views19594
    Read More
  4. [Apache] MPM(Prefork VS Worker)

    Date2012.01.16 ByADMINPLAY Views19639
    Read More
  5. Apache 2.2.21 패치 (mod_proxy_ajp 패치와 apache killer...

    Date2012.01.16 ByADMINPLAY Views19641
    Read More
  6. KeepAlive 설정 및 정의

    Date2012.01.16 ByADMINPLAY Views19891
    Read More
  7. 트래픽분석툴(mod_throttle) 설치 및 설정 - apache1.3.x ...

    Date2010.05.03 ByADMINPLAY Views20019
    Read More
  8. Apache 2.2.17 (mod_url 하고 mod_rewrite 충돌)

    Date2011.08.18 ByADMINPLAY Views20396
    Read More
  9. 리눅스 개인계정 로딩시 틸드(~)기호없이 그냥 사용

    Date2010.09.22 ByADMINPLAY Views20684
    Read More
  10. APM + Snort + ADODB + BASE + oinkmaster 설치

    Date2010.05.29 Byl2zeo Views20816
    Read More
  11. Apache 로그레벨의 종류

    Date2012.01.16 ByADMINPLAY Views20845
    Read More
  12. 아파치에서 멀티도메인 설정 방법

    Date2012.10.09 Byl2zeo Views20979
    Read More
  13. [LINUX] Apache 2.2 + mod jk 1.2 + Tomcat 5.x 연동

    Date2009.05.07 ByADMINPLAY Views21037
    Read More
  14. apache 외부링크 차단

    Date2010.08.31 ByADMINPLAY Views21221
    Read More
  15. mod_deflate 설정

    Date2011.03.18 ByADMINPLAY Views21236
    Read More
  16. Apache: client denied by server configuration

    Date2010.10.25 ByADMINPLAY Views21665
    Read More
  17. Unclean shutdown of previous Apache run?

    Date2009.08.05 ByADMINPLAY Views21795
    Read More
  18. APM 기본설치후 아파치 실행에러 httpd: Could not determ...

    Date2009.08.08 ByADMINPLAY Views21875
    Read More
  19. apache, tomcat 가상디렉토리 설정

    Date2010.09.17 ByADMINPLAY Views23003
    Read More
  20. Apache mod_deflate

    Date2012.01.16 ByADMINPLAY Views23387
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234