11/06/2010

Install mod_pagespeed on Ubuntu

Google 針對Apahce出的 mod_pagespeed 模組,主要讓你的網站用最省力、簡單、自動化跑最佳化 HTML, JavaScript, CSS, Image 相關網站元素。

聽聽Google怎麼說

we’re introducing a module for the Apache HTTP Server called mod_pagespeed to perform many speed optimizations automatically. We’re starting with more than 15 on-the-fly optimizations that address various aspects of web performance, including optimizing caching, minimizing client-server round trips and minimizing payload size. We’ve seen mod_pagespeed reduce page load times by up to 50% (an average across a rough sample of sites we tried) -- in other words, essentially speeding up websites by about 2x, and sometimes even faster.

ubuntu 安裝

  1. wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_amd64.deb
  2. sudo dpkg -i mod-pagespeed*.deb
  3. vim /etc/apache2/mods-available/pagespeed.conf

    修改ModPagespeedDomain 加入網站domain name => www.chrispad.com

  4. sudo /etc/init.d/apache2 restart

確認網站的HTML、CSS是否已經改變過,想要進一步的微調 Go!

No comments:

Post a Comment