Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # apache optimization with Google's mod_pagespeed
- # www.fduran.com
- # Page for mod_pagespeed : http://code.google.com/speed/page-speed/docs/using_mod.html
- # Download from http://code.google.com/speed/page-speed/download.html :
- cd /usr/local/src
- wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb
- apt-get -f install
- dpkg -i mod-pagespeed-*.deb
- #
- check module is there:
- ls -lh /etc/apache2/mods-enabled/pagespeed*
- # create directives:
- nano /etc/apache2/conf.d/pagespeed.conf
- #with contents:
- <IfModule pagespeed_module>
- ModPagespeed on
- AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
- # comment out after testing is working:
- # <Location /mod_pagespeed_statistics>
- # Order allow,deny
- # Allow from all
- # SetHandler mod_pagespeed_statistics
- # </Location>
- ModPagespeedEnableFilters make_google_analytics_async
- ModPagespeedEnableFilters collapse_whitespace
- ModPagespeedEnableFilters remove_comments
- </IfModule>
- /etc/init.d/apache2 reload
- # check in /mod_pagespeed_statistics page that numbers are different than zero, also that source of page comes "minimized" (no initial spaces)
- #Also in the response headers for examle from https://www.blamestella.com , you'll see: X-Mod-Pagespeed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement