You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2020/06/19 18:04:13 UTC

[GitHub] [incubator-pagespeed-mod] Lofesa commented on issue #1996: CSS, JS and image files nginx pagespeed mod return not found 404

Lofesa commented on issue #1996:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1996#issuecomment-646796588


   I can´t see the pagespeed on; in any config file.
   The pagespeed SslCertFile is wrong, you have set the dhparam file but need to be a cert.pem file where the CA certificates are. Is your distro Debian/ubuntu? if yes, this directive is not needed.
   The LoadFromFile don´t apply to your config. Why? you have these config, I think:
   nginx public IP+pagespeed -> nginx 127.0.0.1:80 -> nginx 127.0.0.1:8080
   When a request is made to the public IP site, this reques is fechted from 127.0.0.1:80 that fecht from 127.0.0.1:8080 so the site in the public IP can´t read files from disk.
   Why do you need the intermediate 127.0.0.1:80 site?
   An other issue maybe the www vs. non-www site. Your site serve resources from both, so you need to permit pagespeed to rewrite both the www an the non-www , some like:
   pagespeed Domain http*://*.yourdomain.ru;
   These directive permit pagespeed to rewrite the http/https, the domain and all sub-domains.


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

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