Hello, When using Directive Snippets and choosing under Web Config new option appears "Enable PageSpeed" (see image). I can't find any iformation about this option in the manual or on the web.
I once stumble across this in the source code, it seems to be related to the google page speed module https://developers.google.com/speed/pagespeed/module/. but I newer had great success with this module, often the site was slower after enabling it.
I'm still confused. Is this option for google page speed module ? I'm not sure if I should put code in Directive Snippets and chose here or put code under option, or both ? For me it's more practical to use Directive Snippets and change code in one place.
Not sure if this option works in the current release, better put code into the nginx directives field instead.
@till when I add this code to nginx directive I get error Code: pagespeed on; # Needs to exist and be writable by nginx. Use tmpfs for best performance. pagespeed FileCachePath /var/ngx_pagespeed_cache; # Ensure requests for pagespeed optimized resources go to the pagespeed handler # and no extraneous headers get set. location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" ""; } location ~ "^/pagespeed_static/" { } location ~ "^/ngx_pagespeed_beacon$" { }
Hello Friends, I am also interested in Google's opensource Pagespeed module. My worry is: will it compress every script file into a file with a single long line so that I can't edit it any more?
You have to compile pagespeed with nginx before enabling it as it does not come with nginx by default.
@ahrasis Thanks for replay, Is there a recommend install instructions for ispConfig 3.1.5 on Debian 8 ? What are the risks of installing PageSpeed module on nginx ? Is it possible ispConfig will do this soon ?
There is nothing to do from ISPConfig's side. To use pagespeed in the custom nginx directives field, install a nginx which supports pagespeed, that's all. you can get one for debian 8 e.g. from dotdeb repository.