Logo

dev-resources.site

for different kinds of informations.

Configuring a custom domain for your Azure Static Web App

Published at
12/28/2024
Categories
staticwebapps
dns
azure
Author
chsami
Categories
3 categories in total
staticwebapps
open
dns
open
azure
open
Author
6 person written this
chsami
open
Configuring a custom domain for your Azure Static Web App

Configuring a custom domain for your Azure Static Web App is straightforward. Follow these simple steps to get your website running on your own domain.

Step 1: Open the Custom Domains Page

Go to your Azure Static Web App in the Azure Portal. From the left-hand menu, click on Custom domains.

Custom domains page

Step 2: Add a Custom Domain

Click the Add button and choose the option for Custom domain on other DNS.

Add Custom domain

Step 3: Verify Your Domain

To verify your domain, you need to add a TXT record to your DNS provider.

TXT Record

Copy the generated TXT record value and paste it into your DNS provider’s settings. This unique value provides a valid connection between Azure and your DNS provider.

DNS provider TXT Record

For example, if you use Hostinger, it might look like this:

Image description

Step 4: Add a WWW Subdomain

Repeat the process, but this time use www.yourdomain.com instead of yourdomain.com.

Hostinger Example

Step 5: Configure CNAME Records

In the Azure portal, select CNAME and click the Add button at the bottom of the screen.

Add WWW Domain

In your DNS provider’s settings, add or edit the following CNAME records:

  1. For www.yourdomain.com:

CNAME Record for www

  1. For the root domain (yourdomain.com), add an alias (CNAME):

Alias

These configurations make sure your website works with both www and without it.

Done!

That’s it! Your custom domain is now linked to your Azure Static Web App. Enjoy!


dns Article's
30 articles in total
Favicon
Building and Deploying a New API (Part 3)
Favicon
Configuring a custom domain for your Azure Static Web App
Favicon
āļ§āļīāļ˜āļĩāļ•āļīāļ”āļ•āļąāđ‰āļ‡āđāļĨāļ°āļāļģāļŦāļ™āļ”āļ„āđˆāļēāđ€āļšāļ·āđ‰āļ­āļ‡āļ•āđ‰āļ™āļŠāļģāļŦāļĢāļąāļšāđ€āļ‹āļīāļĢāđŒāļŸāđ€āļ§āļ­āļĢāđŒ DNS āļšāļ™ Ubuntu 22.04 LTS āđāļšāļšāļ‡āđˆāļēāļĒ āđ†
Favicon
Email Verifier using Go
Favicon
What are DNS records?
Favicon
How to understand the ins and outs of how DNS really works.
Favicon
How to Simplify DNS Management in a Multi-Account Environment with Route 53 Resolver
Favicon
How to Add an Elastic (Static) IP to Your EC2 Instance And Update Your DNS Records on Route53
Favicon
DNS Spoofing: Controlling DNS Requests on the Network
Favicon
DHCP dinamik DNS gÞncellemesi
Favicon
Migrate a hosted zone to a different AWS account in few seconds!!
Favicon
Explaining DNS NXDOMAIN status in SOA Record Type: On Non-Existing Domains
Favicon
Instant Domain Insights: Why Every Tech Professional Needs DNS Checker Pro
Favicon
Automating DNS Management in Kubernetes with ExternalDNS
Favicon
DNS-load-balancing
Favicon
Verify your Bluesky or Mastodon account on your own domain, with a free website!
Favicon
How to Install and Configure a Private BIND DNS Server on Ubuntu 22.04
Favicon
How to Add DNS Records for Your Domain in Route53
Favicon
AWS S3 Change Url, Proxy Url, Map to Domain in 2024
Favicon
From WHOIS to SSL: How DNS Checker Pro Unveils the Hidden Details of Any Website
Favicon
Automating AWS DNS Firewall Domain List Updates Using S3, Lambda, and CLI
Favicon
Explaining CAA DNS Record
Favicon
Mastering DNS Spoofing with Bettercap: A Comprehensive Guide
Favicon
Issue 65 of AWS Cloud Security Weekly
Favicon
Unlocking the Internet's Address Book: DNS Roots Explained!
Favicon
I bought us-east-1.com: A Look at Security, DNS Traffic, and Protecting AWS Users
Favicon
Unlocking the Power of AWS Route 53: Your Complete Guide to DNS Management
Favicon
DNS: More Than Just a Web Directory
Favicon
Automating DNS with Confidence: Terraform + DNScontrol
Favicon
"Message Not Delivered" - What to Do When Your Email Bounces Back?

Featured ones: