Closed KnyazkovE closed 2 years ago
sudo cp ./web-server.conf /etc/nginx/conf.d/
conf.d/ not good place https://docs.nginx.com/nginx/admin-guide/basic-functionality/managing-configuration-files/
set of feature‑specific files stored in the /etc/nginx/conf.d directory and use the include directive in the main nginx.conf file to reference the contents of the feature‑specific files.
So if it ubuntu|debian
sudo cp ./web-server.conf /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/web-server.conf /etc/nginx/sites-enabled/
скрипт + конфиг