ServerPilot Pagespeed Message History

To enable Message History in Pagespeed on a server managed with ServerPilot – useful if you need to diagnose if there are any problems. You need to create a global level config file – adding it for a particular vhost isn’t good enough.

Create a file pagespeed.conf in /etc/nginx-sp/http.d

pagespeed on;
pagespeed MessageBufferSize 100000;
pagespeed FileCachePath /var/cache/pagespeed;
pagespeed Statistics on;
pagespeed StatisticsLogging on;
pagespeed LogDir /var/log/pagespeed;

Create the folder to hold the logs at:

mkdir /var/log/pagespeed;
chmod 755 /var/log/pagespeed;
chown www-data /var/log/pagespeed

This enables Pagespeed for all the sites on the server so if there are any that shouldn’t be using it, you’ll need to add pagespeed off; to a config file in that particular vhost folder.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.