We have recently launched Nginx 1.12.2 with Pagespeed module pre-loaded. To enable this module for your domain, you will have to follow the following steps:
1. Create a pagespeed.conf file on your local desktop having the following contents:
Code
pagespeed on;
pagespeed XHeaderValue "Powered By ngx_pagespeed";
# 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 "" "";
}
2. Add the created conf file in Webuzo using the Webuzo's Extra Configuration feature from the Webuzo End User Panel. Refer to the below guide for more detailed information:
http://webuzo.com/wiki/Extra_Configuration
3. SSH to your server as root user and create a cache directory, using the following command:
Code
mkdir /var/ngx_pagespeed_cache
4. Now give the ownership permissions to the cache directory using the following command: