I’m setting up a personal ubuntu server for data science, and I want to serve both RStudio server and Jupyter from the site. Yesterday I managed to get an ssl cert signed for my site, https://gnuorleans.org
So, to serve two apps, can I do it with the same cert? I understand that subdomains need their own cert, but I can redirect subdomains through my ddns provider (Google Domains).
So here’s my idea:
- At Google Domains, redirect ‘rstudio.gnuorleans.org’ to ‘gnuorleans.org/rstudio’
- Similarly, redirect ‘jupyter.gnuorleans.org’ to ‘gnuorleans.org/jupyter’
- Within nginix, use location sections to redirect ‘gnuorleans.org/rstudio’ to ‘127.0.0.1:8787’, and similarly redirect ‘gnuorleans.org/jupyter’ to ‘127.0.0.1:8000’.
Can I do the above with my single signed cert, or do I need to dig into wildcard certs or something like that? If this will work, I suspect it would be fairly simple apart from my very rudimentary knowledge of nginx.
Thanks for any help - David