mch0lic opened a new issue #1742:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1742


   I've been running ngx_pagespeed 1.13.35.2-stable on Ubuntu 16.04 and now on 
Ubuntu 20.04 without any issues until this morning when I've noticed that every 
single image served from img.domain.com returns 404. Interesting bit there is 
that pagespeed replaced the image urls and trying to serve cached webp image, 
but cached image returns 404. CSS/JS optmizations stopped working too.
   
   I've tried restarting nginx and purging the pagespeed cache through 
pagespeed_admin without a success.
   
   I've enabled MessageBuffer but there is only info messages and it does not 
give any additional info why this might be happening. /var/log/pagespeed seems 
to be useless (statistics?) and I'm not aware of any additional logs for 
ngx_pagespeed.
   
   I'm not sure if this in any way related, but dpkg log indicated that this 
morning there was some package upgrades, including ca-certificates:
   `ca-certificates (Unpacking ca-certificates (20210119~20.04.2) over 
(20210119~20.04.1) ...)`
   
   Here is the pagespeed configuration for a single site (there was no changes 
recently):
   
   ```
   pagespeed on;
   pagespeed XHeaderValue "ngx_pagespeed";
   pagespeed RewriteLevel PassThrough;
   pagespeed FileCachePath /dev/shm/ngx_pagespeed_cache;
   pagespeed FileCacheSizeKb 307200;
   pagespeed Statistics on;
   pagespeed StatisticsLogging on;
   pagespeed EnableCachePurge on;
   pagespeed LogDir /var/log/pagespeed;
   pagespeed AdminPath /pagespeed_admin;
   
   pagespeed LoadFromFile "https://domain.com/app/uploads/"; 
"/var/www/domain.com/shared/uploads/";
   pagespeed LoadFromFile "https://domain.com/app/plugins/"; 
"/var/www/domain.com/current/web/app/plugins/";
   pagespeed LoadFromFile "https://domain.com/app/themes/"; 
"/var/www/domain.com/current/web/app/themes/";
   
   pagespeed Domain img.domain.com;
   pagespeed MapProxyDomain https://domain.com/img/ https://img.domain.com/;
   
   # Filters
   pagespeed EnableFilters add_instrumentation;
   pagespeed EnableFilters convert_gif_to_png,recompress_png;
   pagespeed EnableFilters convert_jpeg_to_progressive,recompress_jpeg;
   pagespeed EnableFilters 
convert_jpeg_to_webp,convert_to_webp_lossless,convert_to_webp_animated,recompress_webp;
   pagespeed EnableFilters inline_images,resize_images;
   pagespeed EnableFilters extend_cache;
   pagespeed EnableFilters sprite_images;
   pagespeed EnableFilters insert_dns_prefetch;
   pagespeed EnableFilters lazyload_images;
   pagespeed LazyloadImagesAfterOnload off;
   pagespeed EnableFilters inline_css;
   pagespeed CssInlineMaxBytes 2048; # 2kb
   pagespeed EnableFilters inline_javascript;
   pagespeed JsInlineMaxBytes 2048; # 2kb
   pagespeed UrlValuedAttribute img data-imgs image;
   pagespeed UrlValuedAttribute img data-imgm image;
   pagespeed UrlValuedAttribute img data-imgd image;
   pagespeed UrlValuedAttribute img data-desktop-src image;
   pagespeed UrlValuedAttribute img data-mobile-src image;
   pagespeed UrlValuedAttribute img data-mobile-slider-src image;
   
   location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header 
"" ""; }
   location ~ "^/ngx_pagespeed_static/" { }
   location ~ "^/ngx_pagespeed_beacon" { }
   location ~ "^/pagespeed_admin" { allow 127.0.0.1; deny all; }
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pagespeed.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to