Good day, I have a Laravel application on an Azure Virtual machine using Nginx in the ubuntu VM.
I wanted to link it to the custom domain I purchased on name.com...
Those are the steps that I did so you can track with me the issue because I ran out of options:
VM SIDE:
- I created static IP on my VM.
- I created my DNS name on my VM.
- I opened ports: (80, and 443) on my VM.
- I added my domain as
server_name
in the Nginx config of (sites-available and sites-enabled).
- I opened ports: (80, 443) in Nginx.
- I created a DNS Zone for my resource.
Name.com SIDE
- I added :
a record: host: @, answer: my public IP of VM
- I added :
a record: host: *, answer my public IP of VM
- I added :
CNAME record : host: www, answer: my DNS name
- I added :
TXT record : host : @, answer : MS=value
after searching I added the DNS nameservers I got from the DNS Zone of Azure.
I waited after changing every single step of the steps above and it didn't work.
What I get is:
Hmm. We’re having trouble finding that site.
We can’t connect to the server at bcwa.app.
If that address is correct, here are three other things you can try:
Try again later.
Check your network connection.
If you are connected but behind a firewall, check that Firefox has permission to access the Web.
What did I do wrong? What should I do next? To the point that I checked my domain on DNS Checker and it returned the public IP address correctly.
When I get online on my public IP and DNS name link they direct me to my application which is correct.
I'm new to Azure and setting up these configurations so I'll be glad if someone helped me as soon as possible.