When I check my UFW status port 80 and 443 are are open but then when check on NMAP port 80 and 443 are a closed how do open them.
Maybe have a look at this post here