No this is not a limitation of Shiny Server, but has to do with the order in which it resolves locations and this can be configured in the /etc/shiny-server.conf
file. You can follow the instructions for locations in the Shiny Server Administrator's guide to set up two locations: one for your main application and one for the application(s) in a subdirectory. But the trick is to define the location for the subdirectory before the location of the main app. So in your case it would look something like:
run_as shiny
server {
listen 3838;
location /examples/app {
# multiple applications in directory 'app',
# e.g. '/srv/shiny-server/examples/app/myapp' or
# '/srv/shiny-server/examples/app/anotherapp':
site_dir /srv/shiny-server/examples/app/;
log_dir /var/log/shiny-server;
directory_index on;
}
location /examples {
# one application in directory 'myapp':
app_dir /srv/shiny-server/examples/myapp;
log_dir /var/log/shiny-server;
}
}
In this example, the configuration uses site_dir
for the subdirectory such that you can host multiple applications there, but you could also use app_dir
to host just a single application.