Welcome Guest. Please Login or Register  


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



Threaded Mode | Print  

 Enabling Pagespeed module for Nginx (4 Replies, Read 19727 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: --   

Enabling Pagespeed module for Nginx
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
Not working for me

Code
Fail! Mod_Pagespeed is not running on that domain.


Code
200: OK
date: Wed, 01 Nov 2017 12:51:11 GMT
server: Apache
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
pragma: no-cache
set-cookie: PHPSESSID=3e6a2f64199468558ef2a9ab85226681; path=/
connection: close
transfer-encoding: chunked
content-type: text/html; charset=utf-8


-----------------------
Buildz Hosting
IP: --   

Enabling Pagespeed module for Nginx
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

This guide is for the Pagespeed module of Nginx. It seems that you might have not shifted the Default Web Server from Apache to Nginx from the Webuzo Panel. Hence you are facing this issue. Please shift your Web Server to Nginx (updated to the latest version) and try again. You can change the default web server from the Webuzo End User Panel. Please refer to the below for the same:
http://webuzo.com/wiki/Default_Apps

Please let us know if you still face the issue. We will be happy to help you.
IP: --   

Enabling Pagespeed module for Nginx
lesmond
Group: Member
Post Group: Working Member
Posts: 105
Status:
I think I'll skip this, it messes all my sites up, and stops Webuzo displaying correctly  :cry:

-----------------------
Buildz Hosting
IP: --   

Enabling Pagespeed module for Nginx
arabsciences
Group: Member
Post Group: Newbie
Posts: 3
Status:
it works.
however I didn't need to do step 2 (create a cache directory)

the directory was there.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 24, 2024, 12:08 pm.

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