Answer the question
In order to leave comments, you need to log in
Why does Nginx only use the default site config file?
The server has Nginx version 1.10.3 installed.
There are two files in the /etc/nginx/sites-available folder: default and kondrackii.ru
Here is what is in the default file:
server {
listen 80;
listen [::]:80;
root /var/www/html;
index index.html index.htm;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 80;
listen [::]:80;
root /var/www/kondrackii.ru/frontend;
index index.html index.htm;
server_name www.kondrackii.ru kondrackii.ru;
location / {
try_files $uri $uri/ =404;
}
}
Answer the question
In order to leave comments, you need to log in
Show ls /etc/nginx/sites-available
Probably not linking due to wrong name
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question