Dear All,
I have a question, if I may.
We have developed a growing number of shiny apps that we use often. ("Thank you!" to the authors of shiny, shiny-server)
We host these shiny apps on a Linux server (Red Hat) within our corporate firewall.
OUR SYSTEM
Red Hat: Red Hat Enterprise Linux Server release 6.9 (Santiago)
shiny-server: Shiny Server v1.3.0.403 Node.js v0.10.21
shiny: 1.0.3
R: R version 3.3.3
Our setup on the server is based on the shiny-server instructions and basic setup. We have a folder "opt" which has a matching "srv" folder (apologies if this is redundant ... I'm new to Linux and servers). Within the 'srv' folder we have the 'shiny-server' folder. The landing page "index.html" file is in the 'shiny-server' folder along with the css file. We then created two subfolders, one for production apps ('production-apps') and one for development apps ('development-apps'). We publish links to apps in the 'production-apps' folder on the shiny-server landing page. This approach has worked well so far.
THE ISSUE
For the landing page we started with html/css. We then decided to explore the use of a shiny app and markdown to provide the landing page. The shiny app uses server.R and ui.R files located within the 'shiny-server' directory (where the 'index.html' file was previously kept). The UI is based on navbarPage, and each page draws content from an ".md" file.
When we used the 'index.html' approach all of the links worked well.
When we switched to the shiny app and .md approach for the shiny-server landing page we encountered some difficulty. We can no longer link to subfolders such as 'development-apps'. For example,
http://10.2.13.27:3838/development-apps/ would provide a directory listing when we use the landing page based on html/css ('index.html'). When we switch to using the shiny navbarpage as the shiny-server landing page we can no longer access this URL path - we get an error message ("Not Found"). We also get this when we link directly to an app directory (
http://dev2-deming.essendant.com/production-apps/itbq_facility_report).
Is the use of a shiny app (ui.R, server.R) for the shiny-server landing page just not a good practice? Or is it OK to do this and we are just missing some setting that would allow us to access/link-to shiny-server subdirectories and apps if we use a shiny app for the shiny-server landing page?
Thank you in advance for any guidance that might be provided. And apologies in advance for any shortcoming with the question.
Cliff