Решение проблемы:
server {
listen *:443;
server_name site.by;
include ssl/site.by.conf;
location / {
proxy_redirect off;
proxy_pass_header Set-Cookie;
[COLOR=#ff0000] proxy_set_header Host $host;[/COLOR]
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
tcp_nodelay on;
access_log /var/log/nginx/site.byy.access.log;
error_log /var/log/nginx/site.by.error.log;
proxy_pass [URL=https://10.0.2.242]https://[/URL]100.111.1.1;
}
[COLOR=#ff0000] error_page 497 [/COLOR][URL=https://$host$request_uri][COLOR=#ff0000]https://$host$request_uri[/COLOR][/URL][COLOR=#ff0000]; [/COLOR]
}
server {
listen *:443;
server_name site.by;
include ssl/site.by.conf;
location / {
proxy_redirect off;
proxy_pass_header Set-Cookie;
[COLOR=#ff0000] proxy_set_header Host $host;[/COLOR]
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
tcp_nodelay on;
access_log /var/log/nginx/site.byy.access.log;
error_log /var/log/nginx/site.by.error.log;
proxy_pass [URL=https://10.0.2.242]https://[/URL]100.111.1.1;
}
[COLOR=#ff0000] error_page 497 [/COLOR][URL=https://$host$request_uri][COLOR=#ff0000]https://$host$request_uri[/COLOR][/URL][COLOR=#ff0000]; [/COLOR]
}