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.

5 Replies

What is the domain?

Some extra info:
I have ufw firewall on.
Letsencrypt certificate issued for the domain. Firewall access allowed for 'Nginx Full'.

  • I have resolved this issue.

I am having exact same issue.
How did you resolved it?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct