Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running nginx on raspberry pi.

I ran update and upgrade commands and then installed nginx.

1. sudo apt-get update
2. sudo apt-get upgrade
3. sudo apt-get install nginx

Started the server

4. sudo /etc/init.d/nginx start

Output

[ ok ] Starting nginx (via systemctl): nginx.service.

When I enter ip address into the browser nothing appears. What could be the problem here?

share|improve this question
    
netstat says what? – phk Jan 14 at 22:19
3  
If you found the answer to your own question, post that as an answer and accept it! – mmmint Jan 15 at 2:00
1  
Answers should go in the Answer box, not in the Question – Jeff Schaller Jan 15 at 4:46

Changed the root in /etc/nginx/sites-available/default

from root /var/www/html; to root /usr/share/nginx/www;

I also renamed html folder to www because it was missing.

Restarted nginx for the changes to take effect.

sudo systemctl restart nginx
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.