how to create subdomain and point to a directory

how to create sub-domain in digital ocean