nginx把http重定向到了https媚送,導(dǎo)致let's Encrypt不能renew。每次都得改一下寇甸。塘偎。一直想寫個(gè)腳本,也是懶癌拿霉。式塌。
cd /usr/local/nginx/conf
vim nginx.conf
注釋掉重定向
/usr/local/nginx/sbin/nginx -s reload
letsenctrypt renew
改回重定向。友浸。
nginx把http重定向到了https媚送,導(dǎo)致let's Encrypt不能renew。每次都得改一下寇甸。塘偎。一直想寫個(gè)腳本,也是懶癌拿霉。式塌。
cd /usr/local/nginx/conf
vim nginx.conf
注釋掉重定向
/usr/local/nginx/sbin/nginx -s reload
letsenctrypt renew
改回重定向。友浸。