I am having the exactly same issue and neither of the sollutions worked out for me. Unable to access my aapanel trought panel.mydomain.com , neither with the explicit port nor in any other way but with the direct ip of my server.
Edit: Thotght I found the sollution installing the SYS firewall and inserting 7800 port on the security tab, but even that worked out for me.