Welcome! Log In Create A New Profile

Advanced

NGINX - Microsoft Remote Desktop Gateway

KDI
February 10, 2021 12:53AM
Как правильно проксировать 443 порт на сервер шлюзов удаленого рабочего стола

Вот мой конфиг%

root@nginx:/etc/nginx/sites-available# cat rds.domain.su
server {
if ($allowed_country = no) {
return 404;
}
listen 443 ssl;
server_name rds.domain.su;
ssl_certificate /etc/nginx/ssl/domain.crt;
ssl_certificate_key /etc/nginx/ssl/domain.rsa;
location / {
proxy_pass https://rds.domain.su:443;
proxy_ssl_verify off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
proxy_request_buffering off;
access_log /var/log/nginx/rds.access.log;
error_log /var/log/nginx/rds.error.log;
}
}

веб страница открывается ошибок нету а если подключаюсь через приложение mstsc выдается ошибка

2021/02/10 08:42:00 [error] 18427#18427: *400577 upstream prematurely closed connection while reading response header from upstream, client:

что делаю не так ?
Subject Author Posted

NGINX - Microsoft Remote Desktop Gateway

KDI February 10, 2021 12:53AM

Re: NGINX - Microsoft Remote Desktop Gateway

Илья Шипицин February 10, 2021 01:20AM

Re: NGINX - Microsoft Remote Desktop Gateway

KDI February 10, 2021 02:39AM

Re: NGINX - Microsoft Remote Desktop Gateway

Илья Шипицин February 10, 2021 02:58AM

Re: NGINX - Microsoft Remote Desktop Gateway

Maxim Konovalov February 10, 2021 07:00AM

Re: NGINX - Microsoft Remote Desktop Gateway

Илья Шипицин February 10, 2021 07:16AM

Re: NGINX - Microsoft Remote Desktop Gateway

Maxim Konovalov February 10, 2021 07:20AM

Re: NGINX - Microsoft Remote Desktop Gateway

KDI February 10, 2021 08:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready