Member-only story

Configuring Multiple Domains with Nginx on a Single AWS EC2 Instance

Prathap Chandra
5 min readNov 23, 2020

--

Nginx Domain Configuration

In this article, we will discuss how to configure multiple domains with Nginx. If you’ve not purchased any domain yet you can purchase from a domain registration site like Godaddy. There are two steps to configure multiple domains. Feel free to skip if you’re familiar with any one of the steps.

  • DNS Configuration
  • Nginx Configuration

DNS Configuration

Open AWS console and search for Route53 in find services. Open Route53 and click on hosted zones. I already have a few domains configured.

Create a new hosted zone with the domain that you’ve purchased. Select the type as public hosted zone.

Go to your newly created zone and click on create record.

--

--

Prathap Chandra
Prathap Chandra

No responses yet