Often for staging, testing purposes, you require to create a subdomain and if you have DirectAdmin hosting with us, then creating a subdomain is the work of just a few clicks.
1. First, to login into the DirectAdmin control panel visit: https://server-hostname:2222
2. Navigate to Account Manager → Subdomain Management.
3. Enter the subdomain name → Click on ADD SUBDOMAIN.
Congratulations! You have successfully added the subdomain in DirectAdmin.