更新一下https

2017-09-26  本文已影响8人  uucloud

nginx把http重定向到了https,导致let's Encrypt不能renew。每次都得改一下。。一直想写个脚本,也是懒癌。。

cd /usr/local/nginx/conf

vim nginx.conf

注释掉重定向

/usr/local/nginx/sbin/nginx -s reload

letsenctrypt renew

改回重定向。。

上一篇 下一篇

猜你喜欢

热点阅读