0

I recently setup an Ubuntu 12.04 LTS server running nginx, and I could connect to it via its IP address. However, after restarting my computer I can no longer connect to the server in any browser but I can connect via SSH through puTTy. No clue what's going on and ifconfig shows that the IP address has not changed and I changed no settings on the server. How can I fix this?

This picture shows the chrome window response when I try to access the server, the ifconfig from the server (top right), the network settings on the VM (bottom left), and the location settings for /etc/nginx/sites-available/www.

server settings

I have tried restarting, doing an nginx reload, and a full computer restart. Nothing has worked so far. All help is greatly appreciated!

Kara
  • 6,115
  • 16
  • 50
  • 57
Username19
  • 45
  • 1
  • 5

1 Answers1

2

First make sure that the service is working using sudo service nginx status

If it's not running try starting it manually sudo service nginx start

If it fails to start, you can check the error log in /var/log/nginx/error.log or any other error log defined in the server config.

Mohammad AbuShady
  • 40,884
  • 11
  • 78
  • 89