A
A
AlexBoss2018-09-13 13:22:34
Nginx
AlexBoss, 2018-09-13 13:22:34

The sites-available and sites-enabled folders are lost, where are they?

Good day workers. I decided to put django on vps taken from reg.ru. I took ubuntu 16.04, went in, made all the settings, installed PostgreSQL, launched gunicorn on port 8000, everything works, beauty. Then I started to configure nginx, the nginx/1.14.0 version was installed. And then I realized that the sites-available and sites-enabled folders simply do not exist (/etc/nginx). In the manuals for nginx settings, even 1.14, they write about the presence of these folders. I tried to create them, but, apparently, something is still wrong and nothing works (404 Not Found nginx/1.14.0) on the server pages. Help professionals.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2018-09-13
@ky0

See the relevant directives in nginx -V. If there are no directories in nature, the current config can be viewed using nginx -T.

A
Andrey, 2018-09-13
@VladimirAndreev

cat /etc/nginx/nginx.conf|grep sites does
any include contain?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question