Feb 14, 2020

Mapping a Wix subdomain to an AWS EC2 instance

This guide shows how to map a Wix-managed subdomain to an app running on an AWS EC2 instance, and then add an SSL certificate.

Steps

Step 1: Configure an A record in Wix

In Wix, go to Domains → Advanced and add an A record pointing your subdomain to your EC2 instance’s IP.

Detailed walkthrough: Wix — Connecting a subdomain to an external resource

Step 2: Set up an Elastic IP on AWS

A regular EC2 IP changes on restart. Use an Elastic IP to get a static address:

  1. Go to EC2 → Elastic IPs → Allocate Elastic IP address
  2. Associate it with your EC2 instance

Guide: How to set up a custom domain for EC2 without Route53

Step 3: Check DNS propagation

After saving the A record, it can take up to 48 hours to propagate globally. Check progress at:
whatsmydns.net

Step 4: Install a Let’s Encrypt SSL certificate

For Bitnami-based EC2 instances, use the bncert tool:
Bitnami: How to install SSL certificates using bncert