Redirect non-www to www with Apache and NGINX

A two minute guide to redirecting all traffic on your website from the bare / naked / apex domain to www.