Use PageSpeed with Apache

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/mod_pagespeed_ap24.so.

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.

Check Pagespeed statistics

For security reasons, the PageSpeed application is accessible only when using 127.0.0.1 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, disabling URL rewriting and adding your IP address to the list of allowed IP addresses. Ensure that the final result looks like this: