Unable to login to RStudio server after version upgrade

I had RStudio Server v0.98.1103.

In my nginx config file, I added the following lines to access it from /rstudio instead :8787

 location /rstudio/ { proxy_pass http://127.0.0.1:8787/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } 

I just updated v0.99.896. Now when I go to the URL /rstudio and add my credentials, it just goes back to the same login screen. If I entered the wrong credentials, then I see an error, but if the credentials are correct, the page just "refreshes".

If I go to :8787 , I can log in.

Does anyone have any ideas why I can no longer log in?

Edit: When I go back to the previous version, I can log in again.

+5
source share
1 answer

There are several drawbacks to your configuration file. For more information on how to configure the nginx proxy server to use the / rstudio prefix, see this article: https://support.rstudio.com/hc/en-us/articles/200552326-Running-RStudio-Server-with- a-proxy

Here's what the full configuration looks like:

 http { map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 80; location /rstudio/ { rewrite ^/rstudio/(.*)$ /$1 break; proxy_pass http://localhost:8787; proxy_redirect http://localhost:8787/ $scheme://$host/rstudio/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_read_timeout 20d; } } } 
+2
source

All Articles