My nginx conf has some ruby on rails web servers I'm trying to setup a node server for the first time my node server is located at /home/myusername/node_modules/peer/bin/peerjs where peerjs is a filename The suggested use is to have the server listen on port 9000, so in my nginx conf i've created a server with passenger_app_type node; passenger_startup_file peerjs; directives but what about the server root is supposed to be a path to my app's public directory It doesn't have a public directory, all it has is that path to the peerjs file so what should I put for root path?
server { listen 9000; server_name peerjs; # Tell Nginx and Passenger where your app's 'public' directory is # root /usr/home/fugee/node_modules/peer; # Turn on Passenger passenger_enabled on; # Tell Passenger that your app is a Node.js app passenger_app_type node; passenger_startup_file peerjs; } -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/c3da91f0-074f-4579-8916-23f90120e346%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.