Subdomain redirects to main site
Subdomain redirects to main site
I have created a subdomain test.mydomian.com but it loads the site from the public_html of mydomain.com.
DNS in managed externally by namecheap so I created a CNAME record there, host = test, value = mydomain.com, added the subdomain in vestacp under WEB then add web domain, did I miss anything?
Thanks all
DNS in managed externally by namecheap so I created a CNAME record there, host = test, value = mydomain.com, added the subdomain in vestacp under WEB then add web domain, did I miss anything?
Thanks all
Re: Subdomain redirects to main site
For subdomain test.mydomian.comyou need yo add A record not CNAME.HenrysCat wrote: ↑Fri Jun 14, 2019 8:16 amI have created a subdomain test.mydomian.com but it loads the site from the public_html of mydomain.com.
DNS in managed externally by namecheap so I created a CNAME record there, host = test, value = mydomain.com, added the subdomain in vestacp under WEB then add web domain, did I miss anything?
Thanks all
Re: Subdomain redirects to main site
Something likelinuxman wrote: ↑Tue Jun 18, 2019 8:22 amFor subdomain test.mydomian.com you need yo add A record not CNAME.HenrysCat wrote: ↑Fri Jun 14, 2019 8:16 amI have created a subdomain test.mydomian.com but it loads the site from the public_html of mydomain.com.
DNS in managed externally by namecheap so I created a CNAME record there, host = test, value = mydomain.com, added the subdomain in vestacp under WEB then add web domain, did I miss anything?
Thanks all
Code: Select all
www IN CNAME mydomian.com
mail IN CNAME mydomian.com
test.mydomian.com IN A 192.168.2.6