I know this is an old thread...
I'm trying to use basic authentication described by FloE, but something goes wrong. I used the -g option to "npm install", but apart from that, i copied and pasted the code as-is.
This is what I use:
R version: 3.0.1
shiny: 0.6.0
node: v0.8.22
npm: 1.2.14
Debian GNU/Linux: 2.6.32-5-amd64
This is the info i get from shiny-server:
[2013-06-18 09:06:22.081] [INFO] shiny-server - Shiny Server v0.3.5 (Node.js v0.8.22)
[2013-06-18 09:06:22.082] [INFO] shiny-server - Using config file "/usr/local/lib/node_modules/shiny-server/config/default.config"
[2013-06-18 09:06:22.096] [INFO] shiny-server - Starting listener on
0.0.0.0:3838[2013-06-18 09:06:26.792] [ERROR] shiny-server - Uncaught exception: Error: Can't render headers after they are sent to the client.
/usr/local/lib/node_modules/shiny-server/lib/main.js:202
throw err;
^
Error: Can't render headers after they are sent to the client.
at ServerResponse.OutgoingMessage._renderHeaders (http.js:715:11)
at ServerResponse.res._renderHeaders (/usr/local/lib/node_modules/shiny-server/node_modules/connect/lib/patch.js:69:27)
at ServerResponse.writeHead (http.js:1059:20)
at ServerResponse.res.writeHead (/usr/local/lib/node_modules/shiny-server/node_modules/connect/lib/patch.js:75:22)
at Object.sendPage (/usr/local/lib/node_modules/shiny-server/lib/core/render.js:34:12)
at $autoindex_p (/usr/local/lib/node_modules/shiny-server/lib/router/directory-router.js:201:14)
From previous event:
at DirectoryRouter.getAppSpec_p (/usr/local/lib/node_modules/shiny-server/lib/router/directory-router.js:72:6)
at /usr/local/lib/node_modules/shiny-server/lib/router/router.js:116:21
at tryNext (/usr/local/lib/node_modules/shiny-server/lib/core/qutil.js:90:9)
at Object.forEachPromise_p (/usr/local/lib/node_modules/shiny-server/lib/core/qutil.js:110:3)
at Object.getFirstAppSpec_p (/usr/local/lib/node_modules/shiny-server/lib/router/router.js:113:16)
at ServerRouter.getAppSpec_p (/usr/local/lib/node_modules/shiny-server/lib/router/config-router.js:207:19)
at /usr/local/lib/node_modules/shiny-server/lib/router/router.js:116:21
at tryNext (/usr/local/lib/node_modules/shiny-server/lib/core/qutil.js:90:9)
I'm so close... I think!