在Shiny服务器的家乡位置托管应用

时间:2016-04-15 22:46:30

标签: shiny-server

我安装了我的Shiny服务器,它在这个目录下可以正常使用多个应用程序:

/ SRV /光泽 - 服务器/ APP1 / SRV /光泽 - 服务器/ APP2

我可以使用www.mydomain.com/app1访问我的应用。

但是当我使用www.mydomain.com时,它会显示带有示例应用程序的默认闪亮服务器应用程序。

我想要的就是当我去www.mydomain.com时,我可以看到app1,我该如何实现?

谢谢

2 个答案:

答案 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.confsite_dir行。保留directory_index行 - 在您的第一个log_dir构造中需要log_dir。添加location行以及应用的路径。

这适用于示例应用:

1)从app_dir

中删除index.html文件

2)修改/srv/shiny-server/的{​​{1}}部分,如下所示:

location
相关问题