I have an odd scenario and I'm stumped. I set up a Linux Ubuntu VPS and installed nginx, just to serve web files. I'm not using it as a reverse proxy or any kind of load balancer.
I purchased a domain, and created two A records: @ and www which map to my server's IPv4 address.
When I ping my domain name (e.g. typing ping mydomain.example
into cmd), I get the correct IP address responding. If I connect from my client browser to the server by entering the IP address directly, the nginx welcome page loads, so the web server is running and doing its job. However, if I try to navigate to mydomain.example
or www.mydomain.example
, the browser times.
I have done this config before but using Tomcat and Apache. Is there something within nginx that I need to configure in order to get it to serve content when the domain is navigated to? I configured the server block and set the server_name
to mydomain.example
. I've followed many tutorials but can't figure out why it's not connecting.
I thought it was a browser issue but the connection times out on both Chrome and Firefox. Any ideas what I can check to troubleshoot this further?