shiny-server throws an error.
I installed shiny-server on Linux and connected to port 3838.
As a result, the html code is displayed normally in the browser, but shiny-server displays an error.
The shiny-server.conf file is shown below.
# Instruct Shiny Server to run applications as the user "shiny"
#run_as shiny;
run_as root shiny;
# Define a server that listens on port 3838
server {
  listen 3838;
  # 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;
  }
}
I wonder what the cause is and how to fix it.
Thank you for your cooperation.

