nginx把http重定向到了https,導致let's Encrypt不能renew。每次都得改一下。。一直想寫個腳本,也是懶癌。。
cd /usr/local/nginx/conf
vim nginx.conf
注釋掉重定向
/usr/local/nginx/sbin/nginx -s reload
letsenctrypt renew
改回重定向。。
nginx把http重定向到了https,導致let's Encrypt不能renew。每次都得改一下。。一直想寫個腳本,也是懶癌。。
cd /usr/local/nginx/conf
vim nginx.conf
注釋掉重定向
/usr/local/nginx/sbin/nginx -s reload
letsenctrypt renew
改回重定向。。