# cd /usr/local/src/APM_Setup/httpd-2.4.3/modules/filters # /usr/local/apache/bin/apxs -cia -Wl,"-lz" mod_deflate.c
# /usr/local/apache/bin/httpd -l mod_deflate.c
# vi /usr/local/apache/conf/httpd.conf <IfModule mod_deflate.c> AddType text/html .html .htm AddType text/css .css AddType application/xml .xml AddType application/javascript .js AddType application/x-httpd-php .php .php3 .html .htm .phtml .inc AddType application/x-httpd-php-source .phps AddOutputFilterByType DEFLATE text/plain text/html text/xml AddOutputFilterByType DEFLATE application/xhtml+xml application/xml application/rss+xml AddOutputFilterByType DEFLATE text/css application/javascript application/x-javascript AddOutputFilterByType DEFLATE application/json AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/php AddOutputFilterByType DEFLATE application/x-httpd-php AddOutputFilterByType DEFLATE application/x-httpd-fastphp #사용할 압축레벨을 선택, 값이 클수록 압축률이 증가하지만, CPU를 더 많이 사용함 DeflateCompressionLevel 9 # Netscape 4.xx에는 HTML만 압축해서 보냄 BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06~4.08에는 압축해서 보내지 않음 BrowserMatch ^Mozilla/4\.0[678] no-gzip # 자신을 Mozilla로 알리는 MSIE에는 그대로 압축해서 보냄 BrowserMatch \bMSIE !no-gzip !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>
Request Headers - Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 - Accept-Encoding:gzip, deflate - Accept-Language:ko-KR,ko;q=0.8,en-US;q=0.6,en;q=0.4 - Connection:keep-alive - Cookie:tbl_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%22dbe714132c740233f7c93526e7a11201%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A11%3A%22115.68.87.2%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A105%3A%22Mozilla%2F5.0+%28X11%3B+Linux+x86_64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F59.0.3071.115+Safari%2F537.36%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1501209037%3B%7D65560fd68b1e8de8e0b840836288bbe1a8ce9b42 - Host:mobile.ibabynews.com - If-Modified-Since:Fri, 28 Jul 2017 02:33:08 GMT - Referer:http://mobile.ibabynews.com/ - Upgrade-Insecure-Requests:1 - User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 - 적용 확인
0 개의 댓글