我安装了我的Shiny服务器,它在这个目录下可以正常使用多个应用程序:
/ SRV /光泽 - 服务器/ APP1 / SRV /光泽 - 服务器/ APP2
我可以使用www.mydomain.com/app1访问我的应用。
但是当我使用www.mydomain.com时,它会显示带有示例应用程序的默认闪亮服务器应用程序。
我想要的就是当我去www.mydomain.com时,我可以看到app1,我该如何实现?
谢谢
答案 0 :(得分:0)
来自:http://docs.rstudio.com/shiny-server/
修改你的/etc/shiny-server/shiny-server.conf
test {
testLogging {
exceptionFormat = 'full'
}
}
答案 1 :(得分:0)
正如提到的其他答案,您可以修改location
的{{1}}结构。
删除或注释掉/etc/shiny-server/shiny-server.conf
和site_dir
行。保留directory_index
行 - 在您的第一个log_dir
构造中需要log_dir
。添加location
行以及应用的路径。
这适用于示例应用:
1)从app_dir
index.html
文件
2)修改/srv/shiny-server/
的{{1}}部分,如下所示:
location