Ah, there it is, thank you.
Yes, i deleted the changes to start from the beggining.
First try was to put this block of code in "/etc/nginx/sites-enabled/default" file:
http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
client_max_body_size 0; # Disables checking of client request body size
location /rsconnect/ {
rewrite ^/rsconnect/(.*)$ /$1 break;
proxy_set_header X-RSC-Request $scheme://$host:$server_port$request_uri;
proxy_pass http://MyIP_adress:3939;
proxy_redirect / /rsconnect/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
}
}
}
Did not work.
Second, i tried to put this same block of code in "/etc/nginx/nginx.conf" file.
Also did not work.
The third try was put this next block of code in "/etc/nginx/sites-enabled/default", first part before the server{...} and the other part right after the server_name _; as described in Dean Attali tutorial.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
location /rsconnect/ {
proxy_pass http://MyIP_adress:3939/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
rewrite ^(/rsconnect/[^/]+)$ $1/ permanent;
}