Secure connection to Rstudio Server (https) not working


I am trying to securely connect to my Rstudio server via https located at, however, I get this error on Firefox: Secure Connection Failed Error code: SSL_ERROR_RX_RECORD_TOO_LONG

Connection via works connecting to Rstudio (unsecure). Connection via works, too, connecting to OPAL server (secure).

How do I have to configure my RStudio, NGINX, certificates (certbot, Lets encrypt)?

Best, Wilmar

https is configured for port 443. You should have a different subdomain (than srv1) for rstudio (like and a specific nginx config + let’s encrypt certificate as well.



  1. I registered a new Typ A record of an domain address with a provider
  2. I created a certificate with certbot:

sudo certbot --nginx --cert-name -d -d

  1. I added a reverse proxy pointing to port 8787 in /etc/nginx/sites-available/default:

location / {
proxy_set_header Host $host;

Works! :slight_smile: