PageSpeed Admin on different port shows no statistics

16 views
Skip to first unread message

Daniel Raloff

unread,
Feb 7, 2018, 4:11:41 PM2/7/18
to mod-pagespeed-discuss
PageSpeed version: 1.12.34.3-stable
Nginx version: 1.12.2


I have the pagespeed admin set up on the same domain but on port 8000, and it seems that that is preventing the console from accessing the statistics generated on port 443.

No matter how much traffic is sent, histograms have no data, and console graphs show NaN%

I'm certain that statistics are being generated, because I can see them when I put the admin location in the port 443 server block. 

Here's the relevant config sections:

server {
  listen
*:80 default_server;

 
if ($ssl_protocol = "") {
   
return 301 https://$host$request_uri;
 
}

  location
~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
   add_header
"" "";
 
}

  location
~ "^/pagespeed_static/" {
 
}

  location
~ "^/ngx_pagespeed_beacon$" {
 
}
}

server
{
  listen *:443 ssl default_server;

 
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
   add_header
"" "";
 
}

  location
~ "^/pagespeed_static/" {
 
}

  location
~ "^/ngx_pagespeed_beacon$" {
 
}
}

server {

  listen *:7999;


  pagespeed AdminPath /admin;


  if ($ssl_protocol = "") {


       return 301 https://$host:8000$request_uri;


  }


  location ~ ^/$ {

        return 301 /admin;

  }


  location ~ ^/admin {

   }

}

server {
  listen *:8000 ssl;

  pagespeed AdminPath /admin;


  location ~ ^/admin {

    }


  location ~ ^/$ {

       return 301 /admin;

  }

}


And the output of the configuration tab for some more info:

Version: 14: on

Filters
ah      
Add Head
ai      
Add Instrumentation
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
ws      
When converting images to WebP, prefer lossless conversions
dj      
Defer Javascript
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
ll      
Lazyload Images
rj      
Recompress Jpeg
rp      
Recompress Png
rw      
Recompress Webp
rc      
Remove Comments
ri      
Resize Images
rx      
Responsive 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)                              /admin
 
AvoidRenamingIntrospectiveJavascript (aris)  True
 
BeaconUrl (bu)                               /ngx_pagespeed_beacon
 
EnableCachePurge (euci)                      True
 
EnableRewriting (e)                          1
 
FileCacheInodeLimit (afcl)                   500000
 
FileCachePath (afcp)                         /var/cache/ngx_pagespeed
 
LogDir (ald)                                 /var/log/pagespeed
 
MemcachedServers (ams)                       10.20.211.156:11211
 
RewriteLevel (l)                             Core Filters
 
Statistics (ase)                             True
 
StatisticsLogging (asle)                     True
 
XHeaderValue (xhv)                           1.12.34.3-0

Domain Lawyer

Invalidation Timestamp: (none)

Things like setting the admin path and location blocks get duplicated due to a quirk in configuration management, but I wanted to include them here for completeness. If I move the AdminPath directive and the corresponding location block into the server block listening on 443, I see the statistics I would have hoped to see before.

Is there a configuration setting I've missed? Is this working as intended, or could it be a bug? Any help on this would be appreciated.

Thanks,
Dan
Reply all
Reply to author
Forward
0 new messages