Example here https://github.com/certbot/certbot/issues/5817
Got the same error, never got it before, using similar basic setups. Seems very common - Does anyone have any insight in how to get around or what to check?
FedericoBiccheddu created this issue in certbot/certbot closed "Could not automatically find a matching server block." on custom nginx configuration #5817