VZ
Size: a a a
VZ
VZ
VZ
VZ
ВМ
nginx -t
ВМ
VZ
VZ
VZ
VZ
map $http_header $web_upstream {
"1" "10.158.58.36";
"2" "10.158.58.37";
default "10.158.58.36";
}
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://$web_upstream/;
}
VZ
VZ
[root@nginx conf]# systemctl reload openresty
Job for openresty.service failed because the control process exited with error code. See "systemctl status openresty.service" and "journalctl -xe" for details.
VZ
[root@nginx conf]# openresty -t
nginx: the configuration file /usr/local/openresty/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test is successful
VZ
май 27 18:16:55 nginx polkitd[737]: Unregistered Authentication Agent for unix-process:1731:55463 (system bus name :1.26, object path /org/freedesktop/Poli
май 27 18:16:55 nginx systemd[1]: openresty.service: control process exited, code=exited status=1
май 27 18:16:55 nginx systemd[1]: Reload failed for The OpenResty Application Platform.
-- Subject: Юнит openresty.service завершил перечитывание своих настроек
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Юнит openresty.service завершил процесс перечитывания своей конфигурации.
AD
domain-0.ltd.confи такой
upstream domain-0.ltd {
server unix:/run/gunicorn.sock fail_timeout=0;
}
server {
server_name domain-0.ltd;
listen 80;
client_max_body_size 4G;
keepalive_timeout 5;
domain-1.ltd.confdns запись d.ltd А
upstream domain-1.ltd {
server unix:/run/gunicorn.sock fail_timeout=0;
}
server {
server_name domain-1.ltd;
listen 80;
keepalive_timeout 5;
client_max_body_size 4G;
domain-0.ltd.conf.
VZ