Lofesa commented on issue #1897: URL: https://github.com/apache/incubator-pagespeed-mod/issues/1897#issuecomment-963058524
> > Not always, some paths will be rendered like this `pub/static/version1636311072/frontend/...../image.png ` > But you still have a "fixed" part, until the` /pub/` folder. I will say if all statics resources hosted in the local nginx disk are under 1 or 2 folders you can do LoadFromFile with 1 or 2 directives, > > I can“t see a pagespeed Domain http*://*.domain.com > > I just added it as `pagespeed Domain http*://*.subdomain.example.com;` > > and as > > `pagespeed Domain http*://subdomain.example.com;` > > and as > > `pagespeed Domain http*://*.example.com;` > This last directive cover all others. > but I don't see any change in the errors :( > You need to clear the pagespeed cahe > Here's what shows in pagespeed admin in the first case `pagespeed Domain http*://*.subdomain.example.com;` for example > > ``` > Version: 14: on > > Filters > gp Convert Gif to Png > jp Convert Jpeg to Progressive > jw Convert Jpeg To Webp > pj Convert Png to Jpeg > wa Convert animated images to WebP > ws When converting images to WebP, prefer lossless conversions > hw Flushes html > js Jpeg Subsampling > rj Recompress Jpeg > rp Recompress Png > rw Recompress Webp > 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 > EnableCachePurge (euci) True > EnableRewriting (e) 1 > FetchHttps (fhs) enable,allow_self_signed > FileCacheCleanIntervalMs (afcci) 3600000 > FileCacheInodeLimit (afcl) 500000 > FileCachePath (afcp) /var/ngx_pagespeed_cache > FileCacheSizeKb (afc) 204800 > GlobalAdminPath (ngap) /pagespeed_global_admin > GlobalStatisticsPath (ngsp) /ngx_pagespeed_global_statistics > LogDir (ald) /var/log/ngx_pagespeed > LRUCacheByteLimit (alcb) 16384 > LRUCacheKbPerProcess (alcp) 8192 > MessagesPath (nmp) /ngx_pagespeed_message > RewriteLevel (l) Pass Through > SslCertDirectory (assld) /etc/ssl/certs > Statistics (ase) True > StatisticsLogging (asle) True > StatisticsPath (nsp) /ngx_pagespeed_statistics > > Domain Lawyer > http*://*.subdomain.example.com/ Auth > ``` > > > In the log files can you see any request made with UA with "Serf" in it? > > I grepped 'serf' in the nginx access logs and I can see it if you mean that record > > ``` > ../logs/proxy_error_log:2021/11/08 10:42:10 [error] 1559750#0: [ngx_pagespeed 1.13.35.2-0] http://subdomain.example.com/pub/media/icons/34xNxetennis_rating_banner.png (connecting to:localhost):0:serf_context_run error status=111 (Connection refused) > ``` > This can explain the 404, pagespeed is unable to connect because is refused. Take a look, the request is made as http not https Maybe you need to set: `pagespeed RespectXForwardedProto on;` Because I think you have some like: client -> https -> nginx+pagespeed -> http -> localhost > > In the file cache (/var/ngx_pagespeed_cache) under v3 folder what you see? > > I can see files for my server IP and my main domain (the site is in a subdomain however I see only the domain part if that's correct) , I marked with an arrow my domain > >  Is your domain folder under some folder like` http,3A` or under `https,3A`? If under` http,3A`, optimized resources are stored herem but you are requesting a optimized resource under` https,3A` and the resource is not here, so 404.... -- 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