This function creates a subdomain.
document required | string The subdomain's document root within the home directory. Note:
Example: |
domain required | string The subdomain name to create. Example: |
use | integer Default: Whether to use a canonical name in the Apache® configuration for self-referential URLs.
Example: |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ create_subdomain \ domain='subdomain.example.com' \ document_root='public_html/directory_name'
{- "data": {
- "username": "example"
}, - "metadata": {
- "command": "create_subdomain",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}