Enable PageSpeed

Discussion in 'Installation/Configuration' started by AxelssonDesign, Jun 11, 2017.

  1. Hello,
    When using Directive Snippets and choosing under Web Config new option appears "Enable PageSpeed" (see image). I can't find any iformation about this option in the manual or on the web.

    2017-06-11_1732.png
     
  2. jnsc

    jnsc rotaredoM Moderator

  3. I'm still confused. Is this option for google page speed module ?

    I'm not sure if I should put code in Directive Snippets and chose here or put code under option, or both ? For me it's more practical to use Directive Snippets and change code in one place.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Not sure if this option works in the current release, better put code into the nginx directives field instead.
     
  5. @till - Thanks for replay.
    Directive Snippets is great feature when using same code on may websites.
     
  6. @till when I add this code to nginx directive I get error

    Code:
    pagespeed on;
    
    # 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$" { }
    
    
     
  7. concept21

    concept21 Active Member

    Hello Friends,
    I am also interested in Google's opensource Pagespeed module.
    My worry is: will it compress every script file into a file with a single long line so that I can't edit it any more? :rolleyes:
     
  8. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    You have to compile pagespeed with nginx before enabling it as it does not come with nginx by default.
     
  9. @ahrasis Thanks for replay,

    Is there a recommend install instructions for ispConfig 3.1.5 on Debian 8 ?
    What are the risks of installing PageSpeed module on nginx ?
    Is it possible ispConfig will do this soon ?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    There is nothing to do from ISPConfig's side. To use pagespeed in the custom nginx directives field, install a nginx which supports pagespeed, that's all. you can get one for debian 8 e.g. from dotdeb repository.
     

Share This Page