Bitnami PageSpeed

The PageSpeed module speeds up your site and reduces page load time. This open-source Apache or Nginx HTTP server module automatically applies web performance best practices to pages, and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow.

How to check if PageSpeed is enabled?

There are different ways to check if mod_pagespeed for Apache is already configured and running.

  • Check if the module and configuration files are active, by inspecting the /opt/bitnami/apache2/conf/httpd.conf and looking for the following lines:

     Include conf/pagespeed.conf
     Include conf/pagespeed_libraries.conf

    The module will be located at /opt/bitnami/apache2/modules/

  • Check the source code of rendered application page. Images, CSS and JavaScript should appear in compressed form. For example, an image might be named sample.png.pagespeed.ic.ZWx38TQ7J5.png.

How to check Pagespeed statistics?

For security reasons, the PageSpeed application is accessible only when using as the hostname. To access it from other IP addresses, follow these steps:

  • Enable remote access by editing the /opt/bitnami/apache2/conf/pagespeed.conf file and adding your IP address to the list of allowed IP address:

     <Location /mod_pagespeed_statistics>
         Order allow,deny
         Allow from localhost
         Allow from
         Allow from SERVER-IP
         SetHandler pagespeed_console

Do the same for the /pagespeed_console and /mod_pagespeed_message sections. On some versions, this is also called /pagespeed_admin.

  • Restart Apache to load the changes:

     $ cd /opt/bitnami
     $ ./ restart apache

Here is an example of what you should see:

PageSpeed console

TIP: Alternatively, check PageSpeed statistics using an SSH tunnel.

How to disable PageSpeed?

To disable PageSpeed, follow these steps:

  • Comment out the following lines in the /opt/bitnami/apache2/conf/httpd.conf file:

     Include conf/pagespeed.conf
     Include conf/pagespeed_libraries.conf
  • Restart Apache:

     $ sudo /opt/bitnami/ restart apache

How to flush the PageSpeed cache?

To flush the PageSpeed cache, follow these steps:

  • Execute this command:

     $ sudo touch /opt/bitnami/apache2/var/cache/mod_pagespeed/cache.flush
  • Restart Apache:

     $ sudo /opt/bitnami/ restart apache