System details
RStudio Edition : Server
RStudio Version : 1.1.447
OS Version : Ubuntu 16.04.4 LTS
R Version : 3.4.4
We using the rstudio-server with a nginx proxy-server. The Problem is, when calling the url of rstudio e.g. example/rstudio/ i will be redirected to localhost. If if call the url e.g. example/rstudio/auth-sign-in i get the login page and are able to login. After submitting the Credentials, i will be redirected to localhost again. But then when iam calling the URL example/rstudio, iam logged in and everything works fine.
The logout shows the same behavior and redirects to localhost.
Our vhost Configuration File looks like the example here support.rstudio.com/hc/en-us/articles/200552326-Running-RStudio-Server-with-a-Proxy
location /rstudio/ {
rewrite ^/rstudio/(.*)$ /$1 break;
proxy_pass localhost:8787;
proxy_redirect localhost : 8787/ $scheme://$host/rstudio/;
proxy_http_version 1.1;
proxy_set_header Host url
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 20d;
}
The proxy_redirect localhost is a link, but i cant post it, because iam only allowed to post 2 links. I also set the host header, but then i get a 404 HTTP Error.
Any Ideas?