worker_processes 1; pcre_jit on; error_log /tmp/nginx_error.log error; pid ./nginx.pid; events { worker_connections 512; use epoll; accept_mutex off; multi_accept on; } http { charset utf-8; access_log off; server_tokens off; sendfile on; sendfile_max_chunk 4M; client_max_body_size 16m; map $http_upigrade $connection_upgrade { default Upgrade; '' close; } server { listen 192.168.0.2:8080; location /rdp { alias /home/sss/git/work/rozhuk_ivan/backend/www; index index.html; } location /wrdp { #address of webrdp listen port/socket should be set here proxy_pass http://192.168.0.2:8081; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } } }