Ubuntu 20.04 open HTTP port 80 and HTTPS port 443 with ufw - LinuxConfig.org

This article explains how to open HTTP port 80 and HTTPS port 443 on Ubuntu 20.04 Focal Fossa with the ufw firewall. HTTP and HTTPS protocols are primarily used by web services such as, but not limited to, Apache or Nginx web servers.
This is a companion discussion topic for the original entry at https://linuxconfig.org/ubuntu-20-04-open-http-port-80-and-https-port-443-with-ufw