Hello, add an A record for www.subdomain in the domain name provider's management website and point it to the server IP.
Then add the website to the aapanel website or add this domain name, then visit this domain name and apply for SSL for it
alrehely