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. 05
    Mar 2016
    09:15

    PHP 가속기

    CategoryServer Views525
    Read More
  2. 30
    Nov 2016
    05:32

    Server 성능 테스트

    CategoryServer Views585
    Read More
  3. 03
    Mar 2015
    23:55

    php.ini 파일설정으로 파일업로드 용량늘리기

    CategoryServer Views1150
    Read More
  4. 13
    Jul 2015
    04:11

    XE ckeditor 모바일에서 사용하기

    CategoryServer Views1151
    Read More
  5. 08
    Jul 2015
    08:29

    XE 카카오톡 글전송

    CategoryServer Views1222
    Read More
  6. 03
    Mar 2016
    17:43

    WAPM에서 Database 접속 속도 개선하기

    CategoryServer Views1223
    Read More
  7. 27
    Nov 2015
    01:52

    Windows APM Install(Apache 2.4, PHP 6.0, Mysql) 최신버전 설치해보기

    CategoryServer Views1246
    Read More
  8. 08
    Mar 2016
    19:40

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

    CategoryServer Views1248
    Read More
  9. 03
    Mar 2016
    17:27

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

    CategoryServer Views1302
    Read More
  10. 07
    Mar 2016
    23:40

    PHP Opcache 적용 전과 후의 비교

    CategoryServer Views1307
    Read More
  11. 17
    Mar 2016
    08:47

    아파치 모듈 mod_deflate 압축하기

    CategoryServer Views1351
    Read More
  12. 07
    Apr 2016
    12:18

    XE 어느날 갑자기 다운로드가 되지 않을때 해결방법

    CategoryServer Views1351
    Read More
  13. 17
    Apr 2016
    10:28

    XE 리퍼러 모듈로 트래픽 발생에 대처방법

    CategoryServer Views1409
    Read More
  14. 13
    Mar 2015
    22:19

    XE 업데이트 후 모듈업데이트가 안될때 참고

    CategoryServer Views1440
    Read More
  15. 04
    Mar 2016
    09:02

    XE성능 캐시활용으로 속도 100배 개선하기(Varnish 캐시서버 + XE(+패치) + nginx(혹은 아파치) / Wincache)

    CategoryServer Views1448
    Read More
  16. 24
    Mar 2016
    12:55

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

    CategoryServer Views1527
    Read More
  17. 25
    Mar 2016
    08:58

    [아파치 error.log] Fatal Error Unable to reattach to base address

    CategoryServer Views1643
    Read More
  18. 19
    Aug 2016
    15:10

    XE file cache 활용

    CategoryServer Views1648
    Read More
  19. 16
    Mar 2016
    12:18

    [Apache] mod_expires .htaccess을 수정하여 브라우저 캐싱하기

    CategoryServer Views1657
    Read More
  20. 30
    Apr 2016
    12:26

    서버 부하상태 체크

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

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소