Nginx PageSpeed模块配置和使用

  1. 官方文档
    https:\/\/developers.google.com\/speed\/pagespeed\/module\/build_ngx_pagespeed_from_source

  2. Pagespeed开启和相关配置

今天给网站添加了https支持,之后发现网站之前用的pagespeed 不起作用了,文件不能合并,找到文档

https://developers.google.com/speed/pagespeed/module/https_support

添加ssl支持就可以了

pagespeed SslCertDirectory directory;
pagespeed SslCertFile file;

The default directory for Debian-based systems is /etc/ssl/certs, and there is no certificate file setting. On CentOS-based systems, the default directory is /etc/pki/tls/certs and default file is /etc/pki/tls/cert.pem.

猜你喜欢

转载自blog.csdn.net/liyinwang/article/details/77321940