Wednesday, October 13, 2021
In the previous post we went over how to create a Application Load Balancer, based on routes in the URL. In this post we are going to change the rules so that it directs traffic based on host names. For example we could have acmebanking.com route to target group 1 and accounts.acmebanking.com route to target group 2. It's the same concept as the previous setup but instead of routes, we are using hostnames instead.
In order to implement this solution we need to setup a record in Route 53, which is AWS domain registration service. You can follow along with the DNS names, but if you have a hostname registered with AWS that's even better.
1. So the first thing you want to do is go to Route 53 dashboard, go to Hosted Zones
2. Click on the hosted domain
An A record is basically an alias record that points to the underlying IP address, for example an A record of acmebanking.com points to some IP address. If a browser sends a request to acmebanking.com, it is directed to the server with a particular IP address.
4. Select "Simple Routing", then click "Next"
5. Select "Define simple record"
You should see the following if you are following along
7. Create another A record, but this time type accounts in the "Record name" field so the alias will be accounts.acmebanking.com, then click on the "Define simple record" button.
You should see the following A records, select both records and click on "Create records"
Now these records are created, which points to the load balancer.
8. Now you want to add a rule to the load balancer to direct traffic to target group 2 if the hostname is accounts.acmebanking.com. So go to the load balancer and click on the "View/edit rules"
11. The rule should look like the following, it basically says if the hostname is accounts.acmebanking.com direct traffic to target group 2, else direct traffic to target group 1 if it's the root hostname. Click "Save"
Now if you type acmebanking.com you should get a different instance from accounts.acmebanking.com because they target different target groups.
Subscribe to:
Post Comments (Atom)
Search This Blog
Tags
Web Development
Linux
Javascript
DATA
CentOS
ASPNET
SQL Server
Cloud Computing
ASP.NET Core
ASP.NET MVC
SQL
Virtualization
AWS
Database
ADO.NET
AngularJS
C#
CSS
EC2
Iaas
System Administrator
Azure
Computer Programming
JQuery
Coding
ASP.NET MVC 5
Entity Framework Core
Web Design
Infrastructure
Networking
Visual Studio
Errors
T-SQL
Ubuntu
Stored Procedures
ACME Bank
Bootstrap
Computer Networking
Entity Framework
Load Balancer
MongoDB
NoSQL
Node.js
Oracle
VirtualBox
Container
Docker
Fedora
Java
Source Control
git
ExpressJS
MySQL
NuGet
Blogger
Blogging
Bower.js
Data Science
JSON
JavaEE
Web Api
DBMS
DevOps
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Linux Mint
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
Software Development
Subnets
Telerik
VPC
Windows Server 2016
angular-seed
font-awesome
log4net
servlets
tomcat
AWS CloudWatch
Active Directory
Angular
Blockchain
Collections
Compatibility
Cryptocurrency
DIgital Life
DNS
Downloads
Google Blogger
Google Chrome
Google Fonts
Hadoop
IAM
KnockoutJS
LINQ
Linux Performance
Logging
Mobile-First
Open Source
Prototype
R Programming
Responsive
Route 53
S3
SELinux
Software
Unix
View
Web Forms
WildFly
XML
cshtml
githu
Thanks for sharing such a great blog......!!!
ReplyDeletefull form
full form of nrc
nrc full form
mbbs full form
full form of rip
thanks
ReplyDeletebest Psychological services in lahore
blogger templates Blogger Templates 2021 daily updates with newly designed free blogger templates. Blog templates with Highly SEO optimized, Responsive Layout professional blogger templates free latest Blogger template free download 2021 Free Blogger Templates. Are you looking for Free Blogger Templates for making a highly professional website
ReplyDeleteExcellent article. Very interesting to read. I really love to read such a nice article. Thanks! Keep rocking.
ReplyDeletelove marriage specialist in pune Love marriage specialist in delhi
love marriage specialist in fiji Love Marriage Specialist in New ZeaLand
Love Marriage Specialist in Dubai
Love Marriage Specialist in UK
Love Marriage Specialist in USA
Love Marriage Specialist in Hong Kong
Love Marriage Specialist in Australia
Very interesting post. Thanks for sharing such a great post. Butterfly Lyrics
ReplyDeleteGreat article, This is really helpful for a newbie like me.
ReplyDeletecustom logo design company
This comment has been removed by the author.
ReplyDeleteGreat Amazing article you have here. I am glad I found it. I will bookmark you. By the way
ReplyDeleteThere are so many article rewriters but this is The best article rewriter tool
Thanks for sharing with us this link.- WishesMsg: Wishes and Messages
ReplyDeleteThanks for sharing with us this link.- PhoneAqua: Mobile Phone Price in Bangladesh 2022
ReplyDelete
ReplyDeleteVery nice and interesting article. Thanks for sharing information. Also check my website Best Poetry Wala
ReplyDeleteThanks for sharing this article. You have a lot of information about that and uh can also visit
Massage center in Lahore for your wellness and mind relax spa.
Mind blowing article you have good writing skill. Thanks for sharing this article And also visit Paint protection flim.
ReplyDeleteECM online shop