olya
Member
Always Free
- Joined:
- Jun 2024
- Posts:
- 159
- From:
- Warsaw, PL
Pro tip: certbot with nginx plugin should handle this automatically but heads up, running as root changes file permissions in ways that break unattended renewal later.
Quick fix without the mess:
1. Stop nginx: sudo systemctl stop nginx
2. Remove the duplicate: sudo rm /etc/nginx/sites-enabled/mysite-le-ssl.conf
3. Restore from your backup of /etc/nginx/sites-available/mysite
4. Run: sudo certbot --nginx -d example.com --reinstall
5. Test: sudo nginx -t
6. Start: sudo systemctl start nginx
Check permissions with ls -l /etc/letsencrypt/archive/ afterward. Root-only means certbot cant auto-renew without root cronjob, which is a security headache you dont need.
licensing is a suggestion
ana_mad
Member
- Joined:
- Jun 2024
- Posts:
- 298
- From:
- Madrid, ES
Which OS and nginx version?
swimming upstream since 2019 🐟
svendeal
Member
Deal Sniper
- Joined:
- Jul 2024
- Posts:
- 301
- From:
- Miami, US
> running as root changes file permissions
Yep
world record: 4min Arch install