H
H
heihachi882015-05-16 17:10:06
Nginx
heihachi88, 2015-05-16 17:10:06

nginx was automatically updated to 1.8 and the sites-enabled directory stopped working, what should I do?

I make any changes to the hosts in the sites-enabled directory - nothing happens. Registered
service nginx stop
Then I register:
service nginx status
And I get "nginx stop/waiting", but the sites still open. The /etc/nginx/conf.d directory is empty.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2015-05-16
@heihachi88

# cp sites-avaliable/* /etc/nginx/conf.d/

V
Vlad Zhivotnev, 2015-05-16
@inkvizitor68sl

/etc/nginx/nginx.conf should contain the following line:
include sites-enabled/*;
At the very end of the http {} section

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question