Editing
Managing Elastic Beanstalk Domain Names
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[Category:AWS]] [[Category:Web Hosting]] [[Category:Elastic Beanstalk]] [[Category:Web Development]] == Overview == The documentation at [http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html Your Elastic Beanstalk Environment's Domain Name] (AWS Elastic Beanstalk Developer Guide) is straight forward and easy to follow. == Configuring Django == Add the allowed domain names to the `ALLOWED_HOSTS` list in `main_app/settings.py`. Make sure to prepend all domain names with a dot (`.`). Otherwise requests to subdomains such as `www.` will result in a 400 error. == Configuring Amazon Route 53 == * Go to the [https://console.aws.amazon.com/route53/home AWS Route 53 management console] > '''Hosted Zones''' * '''Create Hosted Zone''' button ** '''Domain name:''' ''domain name including subdomain'' ** '''Type:''' Public Hosted Zone * After saving the hosted zone, click on it to open up its properties. ** Click '''Create Record Set''' button *** '''Name:''' ''subdomain, e.g. `www`'' *** '''Alias:''' Yes *** '''Alias Target:''' Select an Elastic Beanstalk environment from the dropdown. *** '''Routing Policy:''' Simple ** Make sure to create a record set for the domain without any subdomain, e.g. "mydomain.com" with no leading "www." In this case leave the '''Name''' field blank and point it to the appropriate EB environment. == Configuring non-Amazon registrars == * In Amazon Route 53, navigate to the hosted zone's record sets. * Find a list of name servers in the right column of the record with Type of "NS" , * Copy those name servers to the name server setting of the domain name with the 3rd-party registrar. What should happen at this point is that any requests for the domain name that the registrar receives will be automatically forwarded to Amazon's name servers, which will then follow the rules defined by the hosted zones in Route 53. === Namecheap settings === * Log in at namecheap.com. * Go to '''Dashboard''' > '''Domain List''' > ''find the domain'' > '''Manage''' button > '''Domain''' tab * Under '''Nameservers''' select `Custom` ** Enter nameserver addresses listed with the Amazon Route 53 hosted zone. ** Click the checkmark to save the changes.
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information