apahce module模組--mod_pagespeed -- Google出的,用來優化網頁
作者: cross 日期: 2011-04-20 09:45
http://code.google.com/intl/zh-TW/speed/page-speed/docs/module.html
mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving content with the Apache HTTP Server.
下載頁面 http://code.google.com/intl/zh-TW/speed/page-speed/download.html
我要用的是 : mod_pagespeed 32-bit .rpm (CentOS/Fedora)
安裝
rpm -ivh mod-pagespeed-beta_current_i386.rpm
套件內容
/etc/cron.daily/mod-pagespeed
/etc/httpd/conf.d/pagespeed.conf
/usr/lib/httpd/modules/mod_pagespeed.so
/var/www/mod_pagespeed/cache
/var/www/mod_pagespeed/files
重新啟動apache
測試
可以在phpinfo的HTTP Headers Information看到相關資訊
X-Mod-Pagespeed 0.9.16.9-576
我用 http://pagespeed.googlelabs.com/ 測試一下效能 (firefox 4 + pagespeed附加元件)
(未修改過 /etc/httpd/conf.d/pagespeed.conf內容)
apache 沒有掛載 pagespeed 時是 80 分
apache 有掛載 pagespeed 時是 82 分
這樣子是有成功嗎! 還是我首頁太多東西了
問題
mod_pagespeed 會讓 TinyEditor 編輯器不能用
上一篇
返回
下一篇
標籤:




Apache Range Header DOS 攻擊讓主機資源輕易消秏待盡 (2011-09-15 21:01)
apache強制某路徑使用https方式連線 (2011-06-26 16:31)
關閉apache與php版本顯示 (2011-02-08 12:19)
Apache + mod_security 網站應用程式防火牆阻擋攻擊(WAF) (2010-11-30 16:59)
apache 搭配 mod_write 來得知是不是透過手機來瀏覽網站的 (2010-10-29 15:44)
Apache 使用 mod_php 讓 VH 有獨立的 php.ini 檔 (2009-02-06 10:34)
Apache + 可以限制 .htaccess 只能使用某些參數嗎 (2009-02-02 18:52)
對 Apache 連線數多個概念 (2008-10-29 11:50)
apache + mod_gnutls 達到單一IP多個domain使用SSL服務 (2008-09-17 19:26)