Problems with nginx with many configs

Hi!
I am use centos 8.3.
The problem is in certbot 1.13.0 installed with the of snap, as well as in version certbot 1.12.0 installed using the EPEL repository.
This problem did not exist in certbot-auto, but now certbot-auto does not work (

I cannot issue certificates for my sites:
Type: unauthorized
Detail: Invalid response from
https: //domain/.well-known/acme-challenge/d8oLXK4fO_xVYD7w1UvwHZ2v1UNc4TGzvz_Sptb8JfU
[address]: " \ r \ n 404 Not
Found \ r \ n \ r \ n

404 Not

Found

\ r \ nnginx \ r \ n "

In my case, nginx has a lot of small configuration files .conf, it looks like this is causing problems for certbots. Now I have 1000+ config files, if I reduce them to about 500, then the certificate is issued normally.

Please need help!

There are many more such errors in letsencrypt.log

2021-03-24 14:32:42,318:DEBUG:certbot_nginx._internal.parser:Could not parse file: /etc/nginx/conf/settings/individual.conf due to Expected {Group:({ "#" rest of line}) | Group:(Forward: ...) | Group:({ {Combine:({{quoted string, starting with " ending with " | quoted string, starting with ' ending with '} ")" [Re:('(${)|[^{;\s]')]...}) | Combine:({Re:('(${)|[^{};\s'"]') [Re:('(${)|[^{;\s]')]...}) | quoted string, starting with " ending with " | quoted string, starting with ' ending with '} [{ {Combine:({{quoted string, starting with " ending with " | quoted string, starting with ' ending with '} ")" [Re:('(${)|[^{;\s]')]...}) | Combine:({Re:('(${)|[^{};\s'"]') [Re:('(${)|[^{;\s]')]...}) | quoted string, starting with " ending with " | quoted string, starting with ' ending with '}}]... Suppress:(";")})} (at char 0), (line:1, col:1)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.