I have a server with nginx setup. I want it to respond to the domain testhero.in.th
.
So in the config file, in my server block, I set server_name testhero.in.th
.
I try to access the site through the domain and I get server took too long to respond. So I use dig to see if the domain is pointing to my server. I get an A record pointing to my server. The ip is 188.166.198.107
.
I then enter the ip into the address bar and I can then access the site.
To make sure, I tail the access log for nginx. When I try to access the server using the ip, I see the logs, but when I try to access through the domain, I don't.
What steps should I take to find out why I can't access the site through my domain name?