javascript - Removing "www." from domain in Node.JS -


i've set server using aws (route53 + elasticbeanstalk). of course route53 won't let me set cname apex of domain, have put "www." in front of domain. domain quite short www. looks bad, , want gone! how can accomplish in node.js or through elasticbeanstalk configuration? thanks

no, route 53 won't let set cname @ apex of domain, because that's not valid dns configuration... why aws introduced aliases... route 53 allow create alias @ apex of domain, references elastic load balancer of elastic beanstalk deployment.

you can use next option if want associate zone apex load balancer dns name.

option 2: create domain using amazon route 53 dns service. amazon route 53 stores information domain in hosted zone. hosted zone amazon route 53 concept similar zone file on dns name server. zone file, hosted zone contains information domain name, including subdomain names within domain , mappings between names , ip address ...

use option associate zone apex load balancer dns name. you’ll use amazon route 53 create hosted zone domain (for example, example.com), , create alias resource record sets. alias resource record set contains pointer resource record set contains dns resource records. example, alias resource record set domain, example.com, can point dns name of elastic load balancing load balancer instance mylb-1234567890.us-east-1.elb.amazonaws.com. after create hosted zone, can create alias resource record sets associate subdomain names elastic load balancing instance.

http://docs.aws.amazon.com/elasticloadbalancing/latest/developerguide/using-domain-names-with-elb.html

the alias record, when queried, return 1 of ip addresses of elastic load balancer each time queried.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -