Setting up custom domains on 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:
Decide on domain(s) or subdomain(s) that you would want to host your applications on: (Example: acmeshinyapps.com or apps.acme.com)
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.
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.
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)
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.
If you have questions about this article or would like to discuss ideas presented here, please post on RStudio Community. Our developers monitor these forums and answer questions periodically. See help for more help with all things Shiny.