Skip to content
조회 수 1248 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

제로보드 XE 1.7 은 이미 GZIP 압축을 사용하고 있다 !


Simply add this line to the top of your PHP documents: 
<? ob_start("ob_gzhandler"); ?> 
It has to be inserted before any content is outputted. It's not as efficient as mod_deflate, but it still works well and saves a ton of bandwidth and processor power.

허나 이놈의 Gzip은 RSS Feed 에 오류를 발생시킨다.

gzip로 정상적으로 압축되어 전송되는지는
http://www.whatsmyip.org/http_compression/ 

http://site-perf.com/
에서 주소를 삽입해서 압축률을 확인할 수 있습니다.


CSS, JS파일, gzip으로 한꺼번에 압축해서 전송하기

내용 참고: http://www.xpressengine.com/19979181 
요거 대박 팁입니다!! 속도 개선에 눈에 띄는 결과가 나옵니다.
 
1. http://code.google.com/p/minify/ 에서 minify 최신버전을 다운받습니다. 현재는 minify 2.1.5 버전입니다.

2. 압축해제 한후, min 폴더내의 config.php 파일을 에디터에서 불러오기 합니다.

3. 47번째쯤 라인의 //$min_cachePath = '/tmp'; 라는 부분을 $min_cachePath = './tmp'; 로 수정합니다.

4. min 폴더안에 tmp 라는 폴더를 새로 만들기합니다.

5. min 폴더를 FTP 로 서버의 루트디렉토리에 업로드합니다.

6. 서버에 업로드된 min 폴더안의 tmp 폴더의 퍼미션을 707 로 권한 변경합니다.

7. XE 설치폴더안의 .htaccess 파일을 에디터에서 불러오기합니다.

8. 아래의 2가지 경우중 해당되는 구문을 .htaccess 파일의 맨 아랫줄에 추가합니다.


XE 설치경로가 /xe/ 로 사용되는 경우
RewriteRule ^(.*\.(css|js))$ ../min/index.php?f=xe/$1 [L]


XE 설치경로가 루트디렉토리인 경우
RewriteRule ^(.*\.(css|js))$ /min/index.php?f=$1 [L]

 



9. 수정한 .htaccess 파일을 XE 폴더에 덮어쓰기 합니다.
로그인 후 댓글쓰기가 가능합니다.

?

  1. 22
    Feb 2016
    09:47

    8기가 램에 맞는 Mysql config 셋팅 값

    CategoryServer Views3858
    Read More
  2. 13
    May 2013
    08:11

    Apache & Mysql 셋팅방법(httpd-mpm.conf / my.ini)

    CategoryServer Views13707
    Read More
  3. 23
    Mar 2016
    12:23

    APACHE PHP 에러 잡기

    CategoryServer Views9960
    Read More
  4. 06
    Sep 2016
    20:32

    Apache에 대한 mod_proxy 지원 구성

    CategoryServer Views1801
    Read More
  5. 02
    Jun 2015
    08:39

    APMSETUP7 PHP 업그레이드

    CategoryServer Views6373
    Read More
  6. 05
    Jan 2013
    08:23

    asp,jsp,php 아이피(ip) 가져오기/확인

    CategoryServer Views11867
    Read More
  7. 08
    Mar 2016
    19:40

    CSS, JS파일, gzip으로 한꺼번에 압축해서 전송하기

    CategoryServer Views1248
    Read More
  8. 12
    Apr 2016
    12:23

    ECS P43T-AD3, Asus C381GM, Driver(두번째 사용했던 서버 드라이버)

    CategoryServer Views2804
    Read More
  9. 22
    Dec 2016
    21:49

    FileZilla FTP SERVER 패시브모드 셋팅방법

    CategoryServer Views8778
    Read More
  10. 10
    Apr 2013
    08:11

    Google Chart API 이용하기

    CategoryServer Views20868
    Read More
  11. 06
    Nov 2016
    23:04

    HP XW6600 E5430 SPEC

    CategoryServer Views4731
    Read More
  12. 02
    Mar 2013
    08:03

    html) 프레임 나누기

    CategoryServer Views10198
    Read More
  13. 24
    Aug 2016
    13:32

    innodb_use_sys_malloc to FALSE

    CategoryServer Views2637
    Read More
  14. 23
    Aug 2016
    20:54

    innodb_use_sys_malloc에 따라 The InnoDB memory heap is disabled mysql error 메시지

    CategoryServer Views3794
    Read More
  15. 11
    Sep 2016
    22:19

    jQuery CDN

    CategoryServer Views4299
    Read More
  16. 01
    Apr 2013
    18:39

    make ping with PHP(핑테스트)

    CategoryServer Views11144
    Read More
  17. 27
    Nov 2016
    21:48

    Minify로 CSS, JS파일, gzip으로 한꺼번에 압축해서 전송하기

    CategoryServer Views4337
    Read More
  18. 03
    Mar 2016
    17:27

    MySQL - 속도저하에 따른 웹페이지 접속 지연

    CategoryServer Views1302
    Read More
  19. 26
    Jul 2016
    22:57

    mysql 16CPU / 16GB My.cnf

    CategoryServer Views2501
    Read More
  20. 24
    Mar 2016
    12:55

    MySQL 5.6 my.cnf 글로벌 변수인지 세션변수인지 확인

    CategoryServer Views1527
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소