Steps to activate a subdomain

  • Log in via ssh - ssh example.com@ssh.example.com
  • Change directory to /var/www - cd /var/www
  • Make a subdirectory called subdomain. mkdir subdomain
  • Add a CNAME record to DNS with subdomain.example.com and example.com as value.

The subdomain will be accessible within a few minutes.