A
A
Alexander2016-04-20 14:45:49
Nginx
Alexander, 2016-04-20 14:45:49

Changed the root directory in nginx. Why can't I access the site?

Changed ngnix root directory from /usr/share/nginx/html to /var/www. Now, when trying to access any page of the site, the following error weighs: 52f797ec2d064488afe6a6ee875d8f1f.png
What to do with it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Chudnovsky, 2016-04-20
@Frankenstine

You messed up something in the config, and nginx just won't start. The logs show an error.

N
nikolayvaganov, 2016-04-21
@nikolayvaganov

Your nginx did not start, see /var/log/nginx/error.log

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question