On a fresh Ubuntu 14.04 virtual machine I've run the following commands:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx
sudo service nginx start
In a browser, if I go to the VM's ip or domain the default nginx page is not shown, the page times out with ERR_CONNECTION_TIMED_OUT
. [I'm able to ssh in with both the ip and domain to run the commands above].
Error logs at /var/log/nginx/error.log
just show the starting and stopping of nginx.
What are the first steps for debugging from here? Or was there an obvious step missed…
[Update] netstat -plunk:
While nginx is running the following two lines are within the netstat -plunt
results:
$ sudo netstat -plunt
...
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 12391/nginx
...
tcp6 0 0 :::80 :::* LISTEN 12391/nginx
...
Looks like nginx is listening on port 80, so that doesn't seem to be the issue.
Best Answer
Although Nginx was listening on port 80, you have to set port 80 to be open to http connections in Azure.