I'm trying to set up a website using an Ubuntu machine running nginx. For some reason, I'm able to access the site by the domain name in Safari and Firefox, but in Chrome it's unable to access the server. However, I'm able to use curl, Postman, etc. and I get the index.html back as I'd like to.
I found that in Chrome I'm able to access the site using the IP address, and I'm totally lost on where to check next.
Here's my configuration file:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
}
I've changed the response code just to make sure that this is the configuration that I'm actually hitting.
Any help would be appreciated!
Edit: The domain is gwilliam.dev