I have a sub domain in server block say sub.example.com, I have setup certbot, and it is successfully working for https.
sub.example.com
So, ports 80 and
80