Shiny by RStudio

Setting up custom domains with shinyapps.io

The shinyapps.io Professional plan offers customers the ability to host their Shiny applications using their own domains. This can be useful if you want to control the URL that is viewed by the end-user when you share your application with them.

In order to enable this feature you will want to follow these steps:

  1. Decide on domain(s) or subdomain(s) that you would want to host your applications on: (Example: acmeshinyapps.com or apps.acme.com)

  2. Ask your IT administrator to setup a CNAME from that domain/subdomain to your account domain. (Example: If your account name is acme and your domain you would like to setup is apps.acme.com, then you must create a CNAME from apps.acme.com to acme.shinyapps.io.) Steps to complete this can vary depending on domain registrar or DNS provider, so we recommend you consult your provider’s documentation for exact instructions on completing this step.

  3. Once the domain record has been created, log into the shinyapps.io dashboard, and navigate to Account->Domains. From here you can add the domain or subdomain from above and then click Add Domain.

  4. Now you are ready to add additional URLs to any of your existing applications. Within the dashboard, find your application in the Applications tab and click on the URLs menu bar choice. You will notice that there is already a single URL which is the one that is created by default. (Note the default URL cannot be removed)

  5. Click on Add URL. You can now select from the list of domains you have entered (Example: apps.acme.com) and can now specify the path to the application. The URL field below will show you what the final URL would look like.

Note: a single application can be hosted on multiple domains and using different paths, and that all paths are case sensitive.



We love it when R users help each other, but RStudio does not monitor or answer the comments in this thread. If you'd like to get specific help, we recommend the Shiny Discussion Forum for in depth discussion of Shiny related questions and How to get help for a list of the best ways to get help with R code.

comments powered by Disqus