gpt4 book ai didi

r - 带有 SSL 的 NGINX 上的 Shiny 服务器

转载 作者:太空宇宙 更新时间:2023-11-03 12:48:56 24 4
gpt4 key购买 nike

我在 Ubuntu 12.04 64 位系统上设置了 Shiny Server、R 'shiny' package v7.0、NGINX 和第 3 方 SSL 证书。使用 http 时一切正常,但在我使用 NGINX 设置 SSL 反向代理后 - server.R 文件停止工作 - 我没有看到任何事情发生。我只看到 ui.R 的输出,没有错误,但也没有 server.R 的结果。看起来客户端和服务器之间没有通信。我在 Win 7 上试过 IE8 和 Google Chrome,在 Ubuntu 12.04 笔记本上试过 Google Chrome 和 Chromium。同样的问题。不过有趣的是,它在使用 iPad运行良好

请帮忙。谢谢

Shiny Server v0.3.6 (Node.js v0.10.21)

> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] shiny_0.7.0

loaded via a namespace (and not attached):
[1] bitops_1.0-5 caTools_1.14 digest_0.6.3 httpuv_1.2.0 RJSONIO_1.0-3
[6] xtable_1.7-1

这是 Shiny-Server 的日志:

^[[32m[2013-11-12 03:53:43.571] [INFO] shiny-server - ^[[39mStopping listener on 0.0.0.0:3838
^[[32m[2013-11-12 03:53:43.572] [INFO] shiny-server - ^[[39mShutting down worker processes (with notification)
^[[32m[2013-11-12 03:53:44.393] [INFO] shiny-server - ^[[39mShiny Server v0.3.6 (Node.js v0.10.21)
^[[32m[2013-11-12 03:53:44.395] [INFO] shiny-server - ^[[39mUsing config file "/etc/shiny-server/shiny-server.conf"
^[[32m[2013-11-12 03:53:44.435] [INFO] shiny-server - ^[[39mStarting listener on 0.0.0.0:3838

这是 nginx.conf 文件(仅显示服务器部分):

server {

listen 80;
return 301 https://$host$request_uri;

}

server {

listen 443 default ssl;

ssl on;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;

server_name [domain name];
index index.html;

location / {
proxy_pass http://localhost:3838;
proxy_redirect http://localhost:3838/ $scheme://$host/;

}

}

最佳答案

事实证明问题的根本原因并不容易理解,因为它在 iPad 上运行良好但不是在其他系统上。所以,在我发现有一个新的软件版本 Shine Server 0.4.0.0 之后,我采取了升级的行动,并且我已经将“ Shiny ”包升级到 shiny_0.8.0.99。根据此资源的说明完成所有操作后:http://rstudio.github.io/shiny-server/latest/ - 问题已经解决。谢谢。

关于r - 带有 SSL 的 NGINX 上的 Shiny 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19934190/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com