Answer the question
In order to leave comments, you need to log in
Setting up nginx virtual hosts?
How to configure nginx so that it reads not the config /etc/nginx/nginx.conf
, but the Wirth configs. hosts from /etc/nginx/conf.d/*
ie so I can create a 1> virtual host?
In other words, not to /etc/nginx/nginx.conf
prescribe configs for all Wirth. hosts, and so that there is /etc/nginx/conf.d/
a config for your virtual host separately ( /etc/host
already registered)
PS I apologize right away for a stupid question, but on the net I could only find the settings for the old nginx, where the virtual hosts are located in /etc/nginx/sites-available/
and they are activated through the command
sudo ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/
I just don't have those folders :D
Answer the question
In order to leave comments, you need to log in
## /etc/nginx/nginx.conf
# ...
http {
# ...
include /etc/nginx/sites-enabled/*.conf;
# ...
}
# ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question