I've used both blocks of code provided on the Rstudio website for both Apache and Nginx and get the same thing. Going through the URL, I can log in just fine, but if I try to do anything, I get a "Error: Unable to establish connection with R session" message.
On the other hand, if I go to [server IP]:8787, it works as expected.
I've tried manually disabling each of the options in the Nginx config file provided on the website to no avail.
Any thoughts?