I went to the domain registry and add the A record to .mysite.com with IP address, and dev.mysite.com and rest.mysite.com with the same IP Address.
Then in node, I have this:
But I can only see the page from mysite.com and www.mysite.com, not rest.mysite.com nor dev.mysite.com.
What else do I need to set up?
do I need to change the server (ubuntu) host entry as well? but I have done it in this way already:
what else do I need to do?
============== After almost 6 hours, I finally get rest.mysite.com working. it is the DNS that takes very long time to propagate…
but now, another question. do I have to set up each subdomain or sub-subdomain in DNS?
I tried this for DNS A record setting: “.rest.mysite.com”
and in node, I add express.vhost(‘dev.rest.mysite.com’);
but it doesn’t work. do I need to set dev.rest.mysite.com in the DNS?
Problem courtesy of: murvinlai
I got it working now. use *.rest.mysite.com for the A record, and then I can use the node to make the subdomain. :)
Solution courtesy of: murvinlai