mitchellkrogza / nginx-ultimate-bad-bot-blocker

Nginx Block Bad Bots, Spam Referrer Blocker, Vulnerability Scanners, User-Agents, Malware, Adware, Ransomware, Malicious Sites, with anti-DDOS, Wordpress Theme Detector Blocking and Fail2Ban Jail for Repeat Offenders
Other
3.81k stars 472 forks source link

LetsEncrypt certbot fails with conf.d/botblocker-nginx-settings.conf #449

Open aumouth opened 2 years ago

aumouth commented 2 years ago

Within conf.d/botblocker-nginx-settings.conf server_names_hash_bucket_size directive cause certbot to fail on certificate creations and renewals. Refer https://github.com/certbot/certbot/issues/5199#issuecomment-626375046

Suggest removing or commenting out this directive.

mitchellkrogza commented 2 years ago

Make sure that setting is not duplicated elsewhere. I run this on multiple servers all using certbot with no errors whatsoever.

pulse-mind commented 2 weeks ago

I think it is because you are using cert bot nginx plugin. You can comment the line in /etc/nginx/conf.d/botblocker-nginx-settings.conf Using one command line : sed -e '/server_names_hash_bucket_size/ s/^#*/#/' -i /etc/nginx/conf.d/botblocker-nginx-settings.conf

pulse-mind commented 2 weeks ago

Anyway I am experiencing the same problem as aumouth. I am using: authenticator = nginx Found in /etc/letsencrypt/renewal/mydomain...