If you have a look at this knowledgebase article it should help you get the WWW host header set up on the server.
Though bear in mind that it's written primarily for IIS, you might need to make some changes for Tomcat to pick up
www.domain.tld https://support.blacknight.ie/253/my...domaintld.html