AutoSSL issue with cpnginx
- cat /usr/local/nginx/conf/vhost.ssl.d/domainname.com.conf
- Add below lines before – location = /favicon.ico {
#………….. Cpnginx OCSP stapling protection for security start ………………..
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /usr/local/nginx/conf/ssl.ca.d/gameoncricket.com_ca-bundle;
resolver 127.0.0.1 8.8.8.8 4.2.2.1 8.8.4.4 4.2.2.2 valid=300s;
resolver_timeout 5s;
#………….. Cpnginx OCSP stapling protection for security end………………….. - After above, nginxctl rebuildvhost domainname.com
- check nginx status – systemctl status nginx.service
- restart nginx – systemctl restart nginx.service