Yes, I am rewriting a path. Using the settings in nginx that are recommended by the setup guide:
location /rsc/ {
rewrite ^/rsc/(.*)$ /$1 break;
proxy_set_header X-RSC-Request $scheme://$http_host$request_uri;
proxy_pass http://localhost:3939;
proxy_redirect / /rsc/;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_http_version 1.1;
}
Only the proxy_set_header Connection $connection_upgrade; has been altered.
Using the options to see what is happening is a great idea. RStudio seems to have an issue with getting the CA:
* Hostname in DNS cache was stale, zapped
* Trying xxx.xxx.xxx.xxx:443...
* TCP_NODELAY set
* Connected to foo.bar (xxx.xxx.xxx.xxx) port 443 (#14)
* found 392 certificates in /etc/ssl/certs
* ALPN, offering h2
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384
* server certificate verification failed. CAfile: none CRLfile: none
* Closing connection 14
Timing stopped at: 0.028 0 0.028
obviously this is not a problem I encounter when accessing the URL in a browser. The cert is working fine