I am runnning Shiny server open source, however I am running only one app. I want to be able to run two at the same time. I have my current app in the directory srv/shiny-server and when I type
0.0.0.0:4949 into my browser my app runs. I then created a folder at srv/shiny-server/test and placed a exact copy of my app in that folder but when I type
0.0.0.0:4949/test it doesn’t run. Can somebody look at my config file below and tell me what to add to make it host both apps using the same port(4949)?
Thanks,
# Instruct Shiny Server to run applications as the user ':HOME_USER:', where
# possible (this username only takes effect in locations managed by
# 'user_dirs'). In all other locations, we should fall back to the 'shiny' user.
run_as :HOME_USER: shiny;
# Define a server that listens of port 3838.
server {
listen 3838;
# Define a location at the URL "/users"
location /users {
# Allow users to host their own apps in ~/ShinyApps
user_dirs;
# Optionally, you can restrict the privilege of hosting Shiny applications
# only to members of a particular Linux group.
# members_of shinyUsers;
}
# Define the location at the URL "/example1"
location /example1 {
app_dir /srv/shiny-server/sample-apps/hello;
log_dir /var/log/shiny-server;
}
}
# Define a server that listens on port 4949
server {
listen 4949;
# Define a location at the base URL
location / {
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
# When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
}
}