> For the complete documentation index, see [llms.txt](https://docs.zillapage.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zillapage.com/install-and-setup/setup-subdomain.md).

# Setup Sub-domain

This document guides you through setting up auto subdomains for your app

### **STEP 1**: Add a DNS record for main-domain

![](https://850593793-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYApEZXe_vNVj_bFjvf%2F-MYAvjd6YezlB_PJ61Ep%2F-MYAwU1zyEnxnul7_dIw%2Fzillpage_sub_domain_new_record.png?alt=media\&token=62492b2e-a025-46e4-bc23-e5248f93ee32)

### **STEP 2:** Create a subdomain on Cpanel

**\*\*Subdomain** **document\_root** will like **document\_root** **main domain**

![](https://850593793-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYApEZXe_vNVj_bFjvf%2F-MYAvjd6YezlB_PJ61Ep%2F-MYAwrbsuDlW_Eongdv3%2Fzillpage_sub_domain_add_subdomain_hosting.png?alt=media\&token=3b48f37a-5723-4c4b-b2fa-8ab845b4a8ce)
