aldousyan
By:
aldousyan

Website not reachable for some reason

December 23, 2016 491 views
DNS Ubuntu 16.04

For some reason I can ping restorechi.com but i can't view it in my browser. I am not sure why. Everything was working yesterday. Here are my DNS and record Settings

Record type address
A @ 198.199.90.94
A mail 198.46.81.206
A www 198.199.90.94
mx 1 ecbiz185.inmotionhosting.com.

NS ns1.digitalocean.com
NS ns2.digitalocean.com
NS ns3.digitalocean.com

I can ping the domain but can't view it in the browser

1 Answer

Check and/or restart is your Web server running.
To do so, you need to connect to server over SSH first.

For Apache:

  • sudo systemctl status apache2
  • sudo systemctl restart apache2

For Nginx:

  • sudo systemctl status nginx
  • sudo systemctl restart nginx

Try to access via browser again. If it doesn't work try another browser or clearing cache just in case. But if it helped, we will try debugging it and make it doesn't happen again.
If nothing helps, check logs.
For Apache you should have two logs and you can open them with any text editor:

  • sudo nano /var/log/apache2/access.log
  • sudo nano /var/log/apache2/error.log

For Nginx look for logs in following directory :

  • /var/log/nginx

If I recall correctly, there should be access_log and error_log.
If you need help analyzing logs, feel free to ask.

Note: Make sure you didn't enable any firewall in meanwhile. If it stopped working from it self, this is not case, but just to note. =)

Have another answer? Share your knowledge.