Domain not pointing to my server
Using Ubuntu 16.04 with Nginx
I have the ns records set on namecheap. ns1.linode.com, ns2.li…etc..
On DNS manager on Lindode I have A records set up, one is blank, one has www, both point to the IP of my site.
My sites-enabled looks like this:
server {
listen 80;
root /home/mydomain;
index index.htm index.html;
server_name mydomain.io www.mydomain.io;
}
If I put my sites IP in my browser it loads fine, so I know that's working. If I load my domain name with www, the site loads but only with html and css, no js or php. If I load without www I get:
"This site can’t be reached
mydomain.io took too long to respond."
I'm at a bit of a loss why it's not working.