bigretromike commented on issue #1755:
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1755#issuecomment-1335087333

   Welcome, once again im struggling with this issue, I didn't resolve it but 
now its even more anoying as I changed server, upgraded nginx, installed the 
latest and greatest pagespeed module, but still the issue is there. Different 
machine, different OS, different software version same issue.
   
   I will be trying to resolve the issue this time and I will be posting 
updates with results here.
    
   > pagespeed FetchHttps enable; pagespeed SslCertDirectory directory; 
(directory in Debian based normally is /etc/ssl/certs, Centos 
/etc/pki/tls/certs pagespeed SslCertFile file; (Only for Red-Hat/Centos distro 
/etc/pki/tls/cert.pem.)
   
   As I changed OS (to RHEL compatible) i added sslcert file, without any 
difference.
   
   I tried adding `pagespeed FetchHttps 
enable,allow_unkonow_certificate_authority,allow_self_signed,allow_certificate_not_yet_valide;`
 without difference
   
   If I add `pagespeed MapRewriteDomain "https://mydomain.com"; 
"http://mydomain.com"` I get fewer errors in logs about not being able to fetch 
like this: 
   `[ngx_pagespeed 1.15.0.0-8917] [1202/103400:WARNING:resource_fetch.cc(197)] 
Fetch failed for resource url 
http://mydomain.com/wp-content/plugins/total-gdpr-compliance/assets/js/frontend-script.js,qver==2.0.2+webfont.js,qver==6.1.1.pagespeed.jc.-DJsi-JAKD.js`
   Which is correct because I even disabled HTTP version of the page so I wont 
have issues because of that.
   But it shouldnt show up because mydomain.com is 100% https, not a single 
line of code/dynamic_code/static_code link to http content on the page.
   If I disable MapRewriteDomain, most of the images doesn't load as it tries 
to fetch them via http, yet the image is replaces with proper pagespeed link 
(that include `.pagespeed.` in name) but it does 404 - maybe im missing ngxin 
location route? The only one pointing to similar content is one located as the 
first location in mydomain.config file in nginx:
   `location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
           add_header "" "";
           set $no_cache 1;
   }
   `
   
   
   
   
   


-- 
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