Buy Reviews
Powered by MaxBlogPress  

提昇網站效能

點閱人數:25次 十二月 21st, 2009 by ㄚ琪 |

今天在使用Google的網站管理員工具有一個Google研究室,裡頭有一個”網站效能”這個分析,點進去看ㄚ琪琪的家工作達人這兩個web所在的網站伺服器是最近剛買的Dell入門級伺服器,它分析後給我page speed 建議:

2009-12-21_163945

我一直以為gzip壓縮功能是apache內建的,看起來好像不是,Google到啟用Apache2 的mod_deflate(gzip)來壓縮網頁提高傳輸效能How To Save Traffic With Apache2’s mod_deflate,在Ubuntu下簡單的指令:

a2enmod deflate

修改/etc/apache2/mods-available/deflate.conf

改成

<ifmodule mod_deflate.c>
DeflateCompressionLevel 9
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE js css
</ifmodule>

重新啟動:

/etc/init.d/apache2 restart

用這個網站Check HTTP Compression來檢查:

2009-12-21_164754

Cool喔!節省了83%喔!看來網站效能提高不少,後續再陸續追蹤網站效能看看!

喜歡這篇文章嗎?請幫這篇加入共用書籤,謝謝:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Hemidemi
  • MyShare
  • Technorati
  • StumbleUpon
  • Diigo
  • Facebook
  • Twitter

Random Posts

Tags: , ,

發表迴響

名稱:(必)
電子郵件(並不會被發佈)(必)
個人網站

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>