서버 압축하기 관련 (minify 소스) 질문있습니다.
본문
아래파일들을 모두 수정했는데도 불구하고 압축이 않되는데 문제가 뭔지 모르겠습니다.
확인 부탁드립니다.
/HDD1/server/apache/gnuboard5/min/config.php 파일
========================
$min_cachePath = './tmp';
========================
/HDD1/server/apache/gnuboard5/.htaccess 파일
========================
<IfModule mod_rewrite.c>
RewriteEngine on
# You may need RewriteBase on some servers
#RewriteBase /min
# rewrite URLs like "/min/f=..." to "/min/?f=..."
RewriteRule ^([bfg]=.*) index.php?$1 [L,NE]
</IfModule>
<IfModule mod_env.c>
# In case AddOutputFilterByType has been added
SetEnv no-gzip
</IfModule>
RewriteRule ^(.*\.[css|js])$ ./min/index.php?f=g5/$1 [L]
[css|js] ==> 이부분 구문이 원래 () 중가로 인데 시트가 깨져보여서 대가로 [] 로 변경함
========================
/HDD1/apache_sr/httpd.conf
========================
LoadModule deflate_module modules/mod_deflate.so
LoadModule rewrite_module modules/mod_rewrite.so
<IfModule mod_deflate.c>
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/x-httpd-php
# 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|mp3|mpe?g|wav|asf|wma|wmv|swf|exe|pdf|doc|xsl|hwp|java|t?gz|bz2|7z)$ no-gzip dont-vary
</IfModule>
========================