Search Results for 'mod_deflate'


1 POSTS

  1. 2008/01/12 mod_deflate by 노는총각

mod_deflate

apache2 에서는 apache1 처럼 mod_gzip을 쓰는게 아니라

mod_deflate 요놈이 그 일을 대신해 준다.

1. 원하는 타입만 압축하는 방법
AddOutputFilterByType DEFLATE text/html text/plain text/xml

2. 이미지를 제외한 모든놈 압축

<Location />
# 필터를 추가한다
SetOutputFilter DEFLATE

# Netscape 4.x에 문제가 있다...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08에 더 문제가 있다
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE은 Netscape라고 자신을 알리지만, 문제가 없다
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# 주의: 아파치 2.0.48까지 mod_setenvif의 버그때문에
# 위의 정규표현식은 동작하지 않는다. 원하는 효과를
# 얻기위해 다음과 같이 수정하여 사용한다:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

# 이미지를 압축하지 않는다
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary

# 프록시가 잘못된 내용을 전달하지않도록 한다
Header append Vary User-Agent env=!dont-vary
</Location>

좀 더 자세한 정보는

http://httpd.apache.org/docs/2.0/mod/mod_deflate.html

요기에

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/01/12 13:48 2008/01/12 13:48
,
Response
No Trackback , No Comment
RSS :
http://blog.zeroidle.com/rss/response/35

Trackback URL : http://blog.zeroidle.com/trackback/35

Leave a comment
[로그인][오픈아이디란?]

블로그 이미지

버그가 없어도 전혀 기쁘지 않아!!!

- 노는총각

Notices

Archives

Calendar

«   2010/03   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Site Stats

Total hits:
50718
Today:
90
Yesterday:
124