Want more timely Centmin Mod News Updates?
Become a Member

Nginx PageSpeed Config file read but all values ignored

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by paperclip, Feb 28, 2017.

  1. paperclip

    paperclip New Member

    8
    1
    3
    Feb 28, 2017
    Ratings:
    +3
    Local Time:
    1:26 PM
    1.11.10
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.11.10 (but also tried 1.11.9)
    • PHP Version Installed: -not applicable-
    • MariaDB MySQL Version Installed: - not applicable -
    • When was last time updated Centmin Mod code base ? : yesterday, 2017-02-27
    • Persistent Config: cat /etc/centminmod/custom_config.inc
    Code:
    LETSENCRYPT_DETECT='y'
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_PAGESPEED='y'
    

    I installed pagespeed as given in the docs: Set flags in custom_config.inc, recompile nginx, uncomment 3 pagespeed config files in the nginx vhost. Pagespeed is working, I can see the x-pagespeed header and CSS files are combined. However, the values I set in the config files don't have any effect. I set up my IP in pagespeedhandler.conf but yet I'm getting 403 Not allowed errors when accessing /pagespeed_admin. Accessing via localhost works and I'm not using Cloudlfare or any other reverse proxy that could mask my IP. The 3 pagespeed config files are definitely loaded: When adding a syntax error on purpose nginx -t fails.
    The site is running using Lets Encrypt (set up with acmetool addon) and HTTP is turned off. At first pagespeed didn't do anything even though having CoreFilters enabled. I fixed that by adding LoadFromFileMatch. The filters now all work as expected with the only problem that I can't turn filters on or off. Pagespeed is always using the default values regardless. At this stage I have no clue where to look for the root of the issue.. Any help is appreciated.

    pagespeed.conf (domain.com only used as a placeholder here)
    Code:
    pagespeed on;
    
    pagespeed Domain domain.com;
    
    pagespeed LoadFromFileMatch "^https?://domain.com/" "/home/nginx/domains/domain.com/public/";
    pagespeed LoadFromFileRuleMatch disallow .*;
    pagespeed LoadFromFileRuleMatch allow \.css$;
    pagespeed LoadFromFileRuleMatch allow \.jpe?g$;
    pagespeed LoadFromFileRuleMatch allow \.png$;
    pagespeed LoadFromFileRuleMatch allow \.gif$;
    pagespeed LoadFromFileRuleMatch allow \.js$;
    
    #######################################################
    # Purge nginx pagespeed cache
    # https://developers.google.com/speed/pagespeed/module/system#flush_cache
    #######################################################
     pagespeed EnableCachePurge on;
     pagespeed PurgeMethod PURGE;
    
    #######################################################
    # File cache settings
    ######################################
    # needs to exist and be writable by nginx
    
     pagespeed FileCacheSizeKb          102400;
     pagespeed FileCacheCleanIntervalMs 3600000;
     pagespeed FileCacheInodeLimit      500000;
    
    #######################################################
    # By default, ngx_pagespeed adds an X-PageSpeed header with a value of the version of
    # ngx_pagespeed being used. This directive lets you specify the value to use instead:
    # pagespeed XHeaderValue "ngx_pagespeed";
    
    #######################################################
    # let's speed up PageSpeed by storing it in the super duper fast memcached
    # Ensure Memcached server installed http://centminmod.com/memcached.html
    # default install for centmin mod is on port 11211, so localhost:11211 is correct
    # uncomment - remove hash # in front of below 2 lines to enable
    # timeout set at 100 milliseconds
      pagespeed MemcachedThreads 1;
      pagespeed MemcachedServers "localhost:11211";
      pagespeed MemcachedTimeoutUs 100000;
    
    pagespeed MaxCacheableContentLength 16777216;
    
    #######################################################
    ## 1.11.33.0 beta save-data
    ######################################
    # https://developers.google.com/speed/pagespeed/module/filter-image-optimize#image-quality
    
    # https://developers.google.com/speed/pagespeed/module/reference-image-optimize#JpegQualityForSaveData
    pagespeed JpegQualityForSaveData 50;
    
    # https://developers.google.com/speed/pagespeed/module/reference-image-optimize#WebpQualityForSaveData
    pagespeed WebpQualityForSaveData 50;
    
    #######################################################
    ## 1.7.30.1 beta defaults
    ######################################
    pagespeed PreserveUrlRelativity on;
    pagespeed MaxCombinedCssBytes -1;
    pagespeed ImageResolutionLimitBytes 16777216;
    pagespeed EnableFilters inline_google_font_css;
    
    #######################################################
    ## 1.6.29.3 beta defaults
    ######################################
    pagespeed AvoidRenamingIntrospectiveJavascript on;
    pagespeed ImageInlineMaxBytes 3072;
    pagespeed CssImageInlineMaxBytes 0;
    pagespeed MaxInlinedPreviewImagesIndex -1;
    pagespeed MinImageSizeLowResolutionBytes 3072;
    
    #######################################################
    ## ngx_pagespeed filters settings below ##
    ######################################
    
      # show half the users an optimized site, half the regular site
      # change UA-XXXXXXXXXX-1 to your GA unique id
      # uncomment - remove hash # in front of below 5 lines to enable
    #  pagespeed RunExperiment on;
    #  pagespeed AnalyticsID UA-XXXXXXXXXX-1;
    #  pagespeed ExperimentVariable 1;
    #  pagespeed ExperimentSpec "id=1;percent=50;level=CoreFilters;enabled=collapse_whitespace,remove_comments;";
    #  pagespeed ExperimentSpec "id=2;percent=50";
    
      # Filter settings
      # filters outlined at http://ngxpagespeed.com/ngx_pagespeed_example/
    #  pagespeed RewriteLevel CoreFilters;
      pagespeed EnableFilters collapse_whitespace,remove_comments;
    # make_google_analytics_async
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-make-google-analytics-async
      pagespeed EnableFilters make_google_analytics_async;
    
      # make_show_ads_async
      # https://developers.google.com/speed/pagespeed/module/filter-make-show-ads-async
      pagespeed EnableFilters make_show_ads_async;
    
      # responsive_images, responsive_images_zoom
      # https://developers.google.com/speed/pagespeed/module/filter-image-responsive
      pagespeed EnableFilters responsive_images;
      pagespeed EnableFilters responsive_images_zoom;
    
      # convert_to_webp_animated
      # https://developers.google.com/speed/pagespeed/module/filter-image-optimize#convert_to_webp_animated
    #  pagespeed EnableFilters convert_to_webp_animated;
    
      # inline_google_font_css
      # https://developers.google.com/speed/pagespeed/module/filter-css-inline-google-fonts
      pagespeed EnableFilters inline_google_font_css;
      # require FetchHttps if using https site
       pagespeed FetchHttps enable;
    
      # inline_css
      # https://developers.google.com/speed/pagespeed/module/filter-css-inline
       pagespeed EnableFilters inline_css;
       pagespeed CssInlineMaxBytes 2048;
    
      # prioritize_critical_css
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-prioritize-critical-css
       pagespeed EnableFilters prioritize_critical_css;
    
      # move_css_to_head
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-to-head
      pagespeed EnableFilters move_css_to_head;
    
      # move_css_above_scripts
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-above-scripts
      pagespeed EnableFilters move_css_above_scripts;
    
      # combine_css
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-combine
      pagespeed EnableFilters combine_css;
    # Uncomment this if you want to prevent mod_pagespeed from combining files
       # (e.g. CSS files) across paths
       #
    #  pagespeed CombineAcrossPaths off;
    
      # combine_javascript
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-js-combine
      pagespeed EnableFilters combine_javascript;
      pagespeed MaxCombinedJsBytes 122900;
    
      # extend_cache
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-cache-extend
      pagespeed EnableFilters extend_cache;
    
      # rewrite_css
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-rewrite
      pagespeed EnableFilters rewrite_css;
    
      # rewrite_javascript
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-js-minify
      pagespeed EnableFilters rewrite_javascript;
    
      # inline_preview_images
      # https://developers.google.com/speed/pagespeed/module/filter-inline-preview-images
      pagespeed EnableFilters inline_preview_images;
    
      # lazyload_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-lazyload-images
      pagespeed EnableFilters lazyload_images;
    
      # rewrite_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-image-optimize
    #  pagespeed EnableFilters rewrite_images;
       pagespeed DisableFilters rewrite_images;
       pagespeed DisableFilters recompress_images;
       pagespeed DisableFilters convert_png_to_jpeg;
       pagespeed DisableFilters extend_cache_images;
      pagespeed DisableFilters convert_jpeg_to_webp;
      pagespeed DisableFilters convert_to_webp_lossless;
    
      # sprite_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-image-sprite
     pagespeed EnableFilters rewrite_css,sprite_images;
    # insert_dns_prefetch
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-insert-dns-prefetch
      pagespeed EnableFilters insert_dns_prefetch;
    
      # InPlaceResourceOptimization
      # https://developers.google.com/speed/pagespeed/module/system#ipro
      # Enabled by default as of 1.9.32.1
      pagespeed InPlaceResourceOptimization off;
    
    
    
    pagespeed EnableFilters defer_javascript;
    pagespeed MapRewriteDomain cdn.domain.com domain.com;
    
    
    pagespeedhandler.conf (199.199.199.199 only used as a placeholder here)
    Code:
    #  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$" { }
    location /ngx_pagespeed_statistics { allow 127.0.0.1; allow 199.199.199.199; deny all; }
    location /ngx_pagespeed_global_statistics { allow 127.0.0.1; allow 199.199.199.199; deny all; }
    location /ngx_pagespeed_message { allow 127.0.0.1; allow 199.199.199.199; deny all; }
    location /pagespeed_console { allow 127.0.0.1; allow 199.199.199.199; deny all; }
    location ~ ^/pagespeed_admin { allow 127.0.0.1; allow 199.199.199.199; deny all; }
    location ~ ^/pagespeed_global_admin { allow 127.0.0.1; allow 199.199.199.199; deny all; }
    
    pagespeedstatslog.conf
    Code:
    #  Pagespeed stats logging 1.6.29.3+
    pagespeed Statistics on;
    pagespeed StatisticsLogging on;
    pagespeed LogDir /var/log/pagespeed;
    
    Pagespeed admin panel config (http://localhost/pagespeed_global_admin/config and http://localhost/pagespeed_admin/config are the same)
    Code:
    Filters
    ah    Add Head
    cc    Combine Css
    jc    Combine Javascript
    gp    Convert Gif to Png
    jp    Convert Jpeg to Progressive
    jw    Convert Jpeg To Webp
    mc    Convert Meta Tags
    pj    Convert Png to Jpeg
    ws    When converting images to WebP, prefer lossless conversions
    ec    Cache Extend Css
    ei    Cache Extend Images
    es    Cache Extend Scripts
    fc    Fallback Rewrite Css
    if    Flatten CSS Imports
    hw    Flushes html
    ci    Inline Css
    ii    Inline Images
    il    Inline @import to Link
    ji    Inline Javascript
    js    Jpeg Subsampling
    rj    Recompress Jpeg
    rp    Recompress Png
    rw    Recompress Webp
    ri    Resize Images
    cf    Rewrite Css
    jm    Rewrite External Javascript
    jj    Rewrite Inline Javascript
    cu    Rewrite Style Attributes With Url
    cp    Strip Image Color Profiles
    md    Strip Image Meta Data
    
    [/LIST]
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,938
    6,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,408
    Local Time:
    4:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    did you restart nginx server after enabling ngx_pagespeed console as per instructions outlined here ?

    and importantly follow the 3 step guide to enable ngx_pagespeed for specific nginx vhost by uncommenting the 3 ngx_pagespeed related include files in your nginx vhost as outlined at Nginx PageSpeed - CentminMod.com LEMP Nginx web stack for CentOS ?
     
  3. paperclip

    paperclip New Member

    8
    1
    3
    Feb 28, 2017
    Ratings:
    +3
    Local Time:
    1:26 PM
    1.11.10
    thanks for the quick reply.
    Yes, I did both of those things. Pagespeed itself is working, I just can't change the default settings
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,938
    6,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,408
    Local Time:
    4:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    how exactly are you editing pagespeed.conf ? if you use command below it invokes nano linux text editor to edit pagespeed.conf at /usr/local/nginx/conf/pagespeed.conf
    Code (Text):
    pscontrol edit
    

    and edit pagespeedhandler.conf at /usr/local/nginx/conf/pagespeedhandler.conf
    Code (Text):
    pscontrol handler
    

    Sometimes folks are using text editors to edit files on windows and uploading to server which might not get picked up properly compared to nano or vim linux text editor editing
    see Nginx PageSpeed - CentminMod.com LEMP Nginx web stack for CentOS access via yourdomain.com/pagespeed_global_admin/
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,938
    6,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,408
    Local Time:
    4:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, you can also check via command line
    Code (Text):
    lynx --dump localhost/pagespeed_global_admin/config
    

    strangely that reports not the same filters enabled as browser accessed version so could be related or a bug

    like lynx dump I see
    Code (Text):
    lynx --dump localhost/pagespeed_global_admin/config
       Pagespeed Admin    [1]Statistics    [2]Configuration [3]Histograms
       [4]Caches    [5]Console    [6]Message History    [7]Graphs
         __________________________________________________________________
    
    Version: 14: on
    
    Filters
    ah      Add Head
    cc      Combine Css
    jc      Combine Javascript
    gp      Convert Gif to Png
    jp      Convert Jpeg to Progressive
    jw      Convert Jpeg To Webp
    mc      Convert Meta Tags
    pj      Convert Png to Jpeg
    ws      When converting images to WebP, prefer lossless conversions
    ec      Cache Extend Css
    ei      Cache Extend Images
    es      Cache Extend Scripts
    fc      Fallback Rewrite Css
    if      Flatten CSS Imports
    hw      Flushes html
    ci      Inline Css
    ii      Inline Images
    il      Inline @import to Link
    ji      Inline Javascript
    js      Jpeg Subsampling
    rj      Recompress Jpeg
    rp      Recompress Png
    rw      Recompress Webp
    ri      Resize Images
    cf      Rewrite Css
    jm      Rewrite External Javascript
    jj      Rewrite Inline Javascript
    cu      Rewrite Style Attributes With Url
    cp      Strip Image Color Profiles
    md      Strip Image Meta Data
    

    but browser i see
    Code (Text):
    Version: 14: on
    
    Filters
    ah    Add Head
    cw    Collapse Whitespace
    cc    Combine Css
    jc    Combine Javascript
    gp    Convert Gif to Png
    jp    Convert Jpeg to Progressive
    jw    Convert Jpeg To Webp
    mc    Convert Meta Tags
    pj    Convert Png to Jpeg
    wa    Convert animated images to WebP
    ws    When converting images to WebP, prefer lossless conversions
    di    Delay Images
    ea    Elide Attributes
    fc    Fallback Rewrite Css
    if    Flatten CSS Imports
    hpsr    Hint Preload of Subresources
    hw    Flushes html
    ci    Inline Css
    gf    Inline Google Font CSS
    ii    Inline Images
    il    Inline @import to Link
    ji    Inline Javascript
    idp    Insert DNS Prefetch
    ig    Insert Google Analytics
    js    Jpeg Subsampling
    ll    Lazyload Images
    ls    Local Storage Cache
    gaa    Convert showads.js use to async adsbygoogle.js
    cj    Move Css Above Scripts
    cm    Move Css To Head
    pr    Prioritize Critical Css
    rj    Recompress Jpeg
    rp    Recompress Png
    rw    Recompress Webp
    rc    Remove Comments
    ri    Resize Images
    rm    Resize Mobile Images
    ir    Resize to Rendered Image Dimensions
    cf    Rewrite Css
    jm    Rewrite External Javascript
    jj    Rewrite Inline Javascript
    cu    Rewrite Style Attributes With Url
    is    Sprite Images
    cp    Strip Image Color Profiles
    md    Strip Image Meta Data
    


    seems what you have to do is add your server ip to allow list in pscontrol handler invoked file /usr/local/nginx/conf/pagespeedhandler.conf and restart nginx and then use YOURDOMAIN.COM name and should give correct config output
    Code (Text):
    lynx -dump YOURDOMAIN.COM/pagespeed_global_admin/config
    
     
    Last edited: Feb 28, 2017
  6. paperclip

    paperclip New Member

    8
    1
    3
    Feb 28, 2017
    Ratings:
    +3
    Local Time:
    1:26 PM
    1.11.10
    Browser and lynx output are consistent for me (see below). I only edited the files with nano and vim, keeping their line endings unix style. I would expect nginx to fail the syntax check if it can't read the file due to encoding error, but don't know if it actually does.

    My goals for pagespeed (besides the default settings) are to use CSS sprites and URL rewrites for a CDN. The CDN rewrites can probably be done using only nginx as well, but not for sprites.

    Code:
    # lynx --dump localhost/pagespeed_global_admin/config
       Pagespeed Admin    [1]Statistics    [2]Configuration [3]Histograms
       [4]Caches    [5]Console    [6]Message History    [7]Graphs
         __________________________________________________________________
    
    Version: 14: on
    
    Filters
    ah      Add Head
    cc      Combine Css
    jc      Combine Javascript
    gp      Convert Gif to Png
    jp      Convert Jpeg to Progressive
    jw      Convert Jpeg To Webp
    mc      Convert Meta Tags
    pj      Convert Png to Jpeg
    ws      When converting images to WebP, prefer lossless conversions
    ec      Cache Extend Css
    ei      Cache Extend Images
    es      Cache Extend Scripts
    fc      Fallback Rewrite Css
    if      Flatten CSS Imports
    hw      Flushes html
    ci      Inline Css
    ii      Inline Images
    il      Inline @import to Link
    ji      Inline Javascript
    js      Jpeg Subsampling
    rj      Recompress Jpeg
    rp      Recompress Png
    rw      Recompress Webp
    ri      Resize Images
    cf      Rewrite Css
    jm      Rewrite External Javascript
    jj      Rewrite Inline Javascript
    cu      Rewrite Style Attributes With Url
    cp      Strip Image Color Profiles
    md      Strip Image Meta Data
    
    Options
      AdminPath (nap)                              /pagespeed_admin
      AvoidRenamingIntrospectiveJavascript (aris)  True
      BeaconUrl (bu)                               /ngx_pagespeed_beacon
      ConsolePath (ncp)                            /pagespeed_console
      EnableRewriting (e)                          1
      FileCacheInodeLimit (afcl)                   500000
      FileCachePath (afcp)                         /var/ngx_pagespeed_cache
      GlobalAdminPath (ngap)                       /pagespeed_global_admin
      GlobalStatisticsPath (ngsp)                  /ngx_pagespeed_global_statistics
      MessagesPath (nmp)                           /ngx_pagespeed_message
      RewriteLevel (l)                             Core Filters
      StatisticsPath (nsp)                         /ngx_pagespeed_statistics
    
    Domain Lawyer
    
    Invalidation Timestamp: (none)
    
    
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,938
    6,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,408
    Local Time:
    4:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    might have missed my previous post' edits try YOURDOMAIN.COM instead of localhost but need to add server ip to /usr/local/nginx/conf/pagespeedhandler.conf as well
    Code (Text):
    lynx -dump YOURDOMAIN.COM/pagespeed_global_admin/config
    

    so try accessing in browser too YOURDOMAIN.COM/pagespeed_global_admin/config
     
  8. paperclip

    paperclip New Member

    8
    1
    3
    Feb 28, 2017
    Ratings:
    +3
    Local Time:
    1:26 PM
    1.11.10
    I guess pagespeeds "Domain" directive doesn't work. This happens over SSH, where it should work since the request IP *should be* 127.0.0.1, right?
    Code:
    lynx --dump domain.com/pagespeed_global_admin/config
                                    403 Forbidden
         __________________________________________________________________
    
                                        nginx
    
    
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,938
    6,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,408
    Local Time:
    4:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    strange works for me.. just need to add server ip and your isp ip to allow list in /usr/local/nginx/conf/pagespeedhandler.conf and restart nginx :)

    Code (Text):
     lynx -dump mydomain.com/pagespeed_global_admin/config       
       Pagespeed Admin    [1]Statistics    [2]Configuration [3]Histograms
       [4]Caches    [5]Console    [6]Message History    [7]Graphs
         __________________________________________________________________
    
    Version: 14: on
    
    Filters
    ah      Add Head
    cw      Collapse Whitespace
    cc      Combine Css
    jc      Combine Javascript
    gp      Convert Gif to Png
    jp      Convert Jpeg to Progressive
    jw      Convert Jpeg To Webp
    mc      Convert Meta Tags
    pj      Convert Png to Jpeg
    wa      Convert animated images to WebP
    ws      When converting images to WebP, prefer lossless conversions
    di      Delay Images
    ea      Elide Attributes
    fc      Fallback Rewrite Css
    if      Flatten CSS Imports
    hpsr    Hint Preload of Subresources
    hw      Flushes html
    ci      Inline Css
    gf      Inline Google Font CSS
    ii      Inline Images
    il      Inline @import to Link
    ji      Inline Javascript
    idp     Insert DNS Prefetch
    ig      Insert Google Analytics
    js      Jpeg Subsampling
    ll      Lazyload Images
    ls      Local Storage Cache
    gaa     Convert showads.js use to async adsbygoogle.js
    cj      Move Css Above Scripts
    cm      Move Css To Head
    pr      Prioritize Critical Css
    rj      Recompress Jpeg
    rp      Recompress Png
    rw      Recompress Webp
    rc      Remove Comments
    ri      Resize Images
    rm      Resize Mobile Images
    ir      Resize to Rendered Image Dimensions
    cf      Rewrite Css
    jm      Rewrite External Javascript
    jj      Rewrite Inline Javascript
    cu      Rewrite Style Attributes With Url
    is      Sprite Images
    cp      Strip Image Color Profiles
    md      Strip Image Meta Data
     
  10. paperclip

    paperclip New Member

    8
    1
    3
    Feb 28, 2017
    Ratings:
    +3
    Local Time:
    1:26 PM
    1.11.10
    Added all of the server IP addresses (both IPv4 and IPv6) and now lynx will show me the config I have configured manually. The site itself is still run with the old config and like you I also can only see the actual config values on the command line. I setup an SSH tunnel via the server to point to domain.com, yet I get a different output there.
    One theory I have is that the pagespeed optimizations are cached together with the settings.
    I also just noticed that some assets are delivered with SPDY while others use HTTP/2. Can't tell why that is either.
    Also just noticed that there are quite a few URLs that will show a control panel for pagespeed. E.g. /ngx_pagespeed_statistics and /ngx_pagespeed_message instead of just /pagespeed_*
    Code:
    lynx --dump domain.com/pagespeed_global_admin/config
       Pagespeed Admin    [1]Statistics    [2]Configuration [3]Histograms
       [4]Caches    [5]Console    [6]Message History    [7]Graphs
         __________________________________________________________________
    
    Version: 14: on
    
    Filters
    ah      Add Head
    cw      Collapse Whitespace
    cc      Combine Css
    jc      Combine Javascript
    mc      Convert Meta Tags
    dj      Defer Javascript
    di      Delay Images
    ec      Cache Extend Css
    es      Cache Extend Scripts
    fc      Fallback Rewrite Css
    if      Flatten CSS Imports
    hw      Flushes html
    ci      Inline Css
    gf      Inline Google Font CSS
    il      Inline @import to Link
    ji      Inline Javascript
    idp     Insert DNS Prefetch
    ll      Lazyload Images
    ga      Make Google Analytics Async
    gaa     Convert showads.js use to async adsbygoogle.js
    cj      Move Css Above Scripts
    cm      Move Css To Head
    pr      Prioritize Critical Css
    rc      Remove Comments
    rx      Responsive Images
    rz      Responsive Images Zoom
    cf      Rewrite Css
    rd      Rewrite Domains
    jm      Rewrite External Javascript
    jj      Rewrite Inline Javascript
    cu      Rewrite Style Attributes With Url
    is      Sprite Images
    
    Options
      AdminPath (nap)                              /pagespeed_admin
      AvoidRenamingIntrospectiveJavascript (aris)  True
      BeaconUrl (bu)                               /ngx_pagespeed_beacon
      ConsolePath (ncp)                            /pagespeed_console
      CssImageInlineMaxBytes (cii)                 0
      CssInlineMaxBytes (ci)                       2048
      EnableCachePurge (euci)                      True
      EnableRewriting (e)                          1
      FetchHttps (fhs)                             enable
      FileCacheCleanIntervalMs (afcci)             3600000
      FileCacheInodeLimit (afcl)                   500000
      FileCachePath (afcp)                         /var/ngx_pagespeed_cache
      FileCacheSizeKb (afc)                        102400
      GlobalAdminPath (ngap)                       /pagespeed_global_admin
      GlobalStatisticsPath (ngsp)                  /ngx_pagespeed_global_statistics
      ImageInlineMaxBytes (ii)                     3072
      ImageResolutionLimitBytes (irlb)             16777216
      InPlaceResourceOptimization (ipro)           False
      JpegQualityForSaveData (iqsd)                50
      LogDir (ald)                                 /var/log/pagespeed
      MaxCacheableContentLength (rcl)              16777216
      MaxCombinedCssBytes (xcc)                    -1
      MaxCombinedJsBytes (xcj)                     122900
      MaxInlinedPreviewImagesIndex (mdii)          -1
      MemcachedServers (ams)                       localhost:11211
      MemcachedThreads (amt)                       1
      MemcachedTimeoutUs (amo)                     100000
      MessagesPath (nmp)                           /ngx_pagespeed_message
      MinImageSizeLowResolutionBytes (nislr)       3072
      PreserveUrlRelativity (pur)                  True
      PurgeMethod (pm)                             PURGE
      RewriteLevel (l)                             Core Filters
      Statistics (ase)                             True
      StatisticsLogging (asle)                     True
      StatisticsPath (nsp)                         /ngx_pagespeed_statistics
      WebpQualityForSaveData (iwsd)                50
    
    Domain Lawyer
      http://domain.com/ Auth RewriteDomain:http://cdn.domain.com/
      http://cdn.domain.com/ Auth
    
    Invalidation Timestamp: (none)
    
    
     
  11. paperclip

    paperclip New Member

    8
    1
    3
    Feb 28, 2017
    Ratings:
    +3
    Local Time:
    1:26 PM
    1.11.10
    This is Thailand again... Found out that my ISP routes me differently depending on which site I visit. My IP address actually shows differently for different websites. https://icanhazip.com/ and DNS leak test will show completely different addresses! But I prefer SSH tunneling anyways, so at least that shouldn't be a problem
     
    • Informative Informative x 1
  12. eva2000

    eva2000 Administrator Staff Member

    30,938
    6,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,408
    Local Time:
    4:26 PM
    Nginx 1.13.x
    MariaDB 5.5
    Ah that would be the problem then with different ISP reported IPs. So SSH tunneling or using a VPN with dedicated IP might be best and whitelist that specific IP.
     
  13. paperclip

    paperclip New Member

    8
    1
    3
    Feb 28, 2017
    Ratings:
    +3
    Local Time:
    1:26 PM
    1.11.10
    Yes, works via VPN. Get the same config as in the post above.
     
    • Informative Informative x 1