Page Speed is an open source project started by Google to help developers optimize their web pages by applying best practices in web performance.
Page Speed began as an extension of the open source browser, and is now deployed in third party products as Webpagetest.org, Show Slow and Google Webmaster Tools.
How it works :
The Page Speed extensions run performance tests on the basis of a set of best practices known to reduce page load time.
mod_pagespeed, the Apache module, automatically optimizes the resources in a web page.
Installation:
First you need to download the module from here: mod-pagespeed download
Then run the following commands to install it:
dpkg -i mod-pagespeed-*.deb apt-get -f install
After you installed the plugin you must restart the apache2 server.
/etc/init.d/apache2 restart
Configure mod_pagespeed for using on VirtualHosts:
Mod_pagespeed it’s installed by default for all the Apache server VirtualHosts. If you want the exact same settings for all VirtualHosts that you can use the design of the default settings. However, if you want to configure VirtualHosts differently, you should use a different design for the settings.
Below you have an example of configuring a VirtualHost with mod_pagespeed:
<VirtualHost *:80> ServerAdmin webmaster@debian-tutorials.com ServerName debian-tutorials.com ServerAlias www.debian-tutorials.com DocumentRoot /var/www/debian-tutorials.com/ <Directory "/var/www/debian-tutorials.com"> Options -Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> ModPagespeed on ModPagespeedFileCachePath "/usr/local/apache2/pagespeed/cache/" ModPagespeedGeneratedFilePrefix "/usr/local/apache2/pagespeed/files/" ModPagespeedEnableFilters combine_css ModPagespeedEnableFilters rewrite_css,rewrite_javascript ModPagespeedEnableFilters inline_css,inline_javascript ModPagespeedEnableFilters rewrite_images ModPagespeedEnableFilters insert_img_dimensions ModPagespeedEnableFilters remove_comments ModPagespeedEnableFilters extend_cache ModPagespeedEnableFilters remove_quotes </VirtualHost>
NOTE: Now we need to set ModPagespeed to off from pagespeed.conf:
open
vim /etc/apache2/mods-enabled/pagespeed.conf
and set ModPagespeed to off
ModPagespeed off
For more info you cand access the pagespeed page at : http://code.google.com/speed/page-speed/
Enjoy