Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Enabling Pagespeed module for Nginx



Normal Mode | Print  

 Enabling Pagespeed module for Nginx (4 Replies, Read 19772 times)
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

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 "" "";
}


location ~ "^/pagespeed_static/" { }
location ~ "^/ngx_pagespeed_beacon$" { }



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:
Code
chown {WEBUZO_USERNAME}:{WEBUZO_USERNAME} /var/ngx_pagespeed_cache



5. Now restart the Nginx service from the Webuzo Panel. You can refer to the below guide for more details on this:
http://webuzo.com/wiki/Restart_services

Now the pagespeed module must be enabled on your server. You can check the same here:
https://ismodpagespeedworking.com/

If you face any issues with the above you can contact us at our support here:
https://www.softaculous.com/support/

Edited by nikhil89 : November 1, 2017, 10:13 am
IP: --   


Threads
 nikhil89   Enabling Pagespeed module for Nginx (4 Replies, Read 19772 times)
    |--  lesmond   Not working for...   on November 1, 2017, 12:58 pm
    |--  nikhil89   Hi, This guide...   on November 1, 2017, 1:04 pm
    |--  lesmond   I think I'll...   on November 1, 2017, 4:17 pm
    |--  arabsciences   it works. however...   on November 12, 2017, 9:25 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 5, 2024, 2:31 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.055