'webinoly or nginx wont redirect www subdomain

When I create a site using sudo site the.url.com -wp it works, but the www. version of the site still goes to the nginx Welcome to nginx! page. Any pointers?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source