After setting the domain name, the panel can only be accessed through the domain name. ip will forbid access to the panel. The domain name needs to have an A record pointing to the ip of the server, and a proxy cannot be used.
Replace aapaenl.aapanel.com with your domain name
echo "aapaenl.aapanel.com" >> /www/server/panel/data/domain.conf
Cancel domain delete this file or