vi /usr/local/nginx/conf/vhost/*.conf |
添增在裡面
server
{
listen 80;
#listen [::]:80;
return 301 https://$server_name$request_uri;
PYTHON、UBUNTU、MAC、CMS
vi /usr/local/nginx/conf/vhost/*.conf |
添增在裡面
server
{
listen 80;
#listen [::]:80;
return 301 https://$server_name$request_uri;
acme.sh 的版本要是太低,會導致每隔三個月的自動續期會失敗。
手動更新
acme.sh --upgrade
以後都自動更新
acme.sh --upgrade --auto-upgrade
關閉自動更新
acme.sh --upgrade --auto-upgrade 0
遇見的錯誤
E: Repository ‘http://dl.ubnt.com/unifi/debian stable InRelease’ changed its ‘Codename’ value from ‘unifi-5.14’ to ‘unifi-6.0’
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
解法:
sudo apt-get update --allow-releaseinfo-change
再來
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove
sudo du -x / | sort -n | tail -40
在最上方添加:
MAILTO=myuser@mydomain.com
就可以將報表寄給指定收件者。