После установки, отключаем дефолтный конфиг
YAML$ cd /etc/nginx/conf.d/$ sudo mv default.conf default.conf.disable12$ cd /etc/nginx/conf.d/$ sudo mv default.conf default.conf.disable
Редактируем основной конфиг Nginx
YAML$ sudo nano /etc/nginx/nginx.conf…stream { upstream backends { server 192.168.1.10:5060; server 192.168.1.11:5060; } server { listen 5060 udp; proxy_pass backends; proxy_responses 1; }}events { worker_connections 1024;}…123456789101112131415161718$ sudo nano /etc/nginx/nginx.conf…stream { upstream backends { server 192.168.1.10:5060; server 192.168.1.11:5060; } server { listen 5060 udp; proxy_pass backends; proxy_responses 1; }} events { worker_connections 1024;}…
Проверяем конфиг на наличие ошибок
YAML$ sudo nginx -tnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successful123$ sudo nginx -tnginx: the configuration file /etc/nginx/nginx.conf syntax is oknginx: configuration file /etc/nginx/nginx.conf test is successful
Перезапускаем Nginx
sudo systemctl restart nginx