Great Thanks!! --jerry
On Sun, Sep 9, 2012 at 10:38 PM, Evan <[email protected]> wrote: > When you set up your server, you tell it what to listen to. You can > choose a socket or a port: > > server.listen('/tmp/echo.sock', function() {}) > > > > http://nodejs.org/api/net.html#net_net_createserver_options_connectionlistener > > On Sunday, September 9, 2012 5:33:23 PM UTC-7, Gerald Klein wrote: >> >> Hi, I have recently started working node and I set up an example of nginx >> running in front and passing off to node via a proxy as such: >> >> I found it to be slower then just node, I set up node using the cluster >> module and I have 4 cores. The only thing I think would improve right away >> is changing the url reference to a socket. >> >> How would I code node do use a socket for it's part? >> >> >> thanks for any help >> >> location / { >> proxy_set_header X-Real-IP $remote_addr; >> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; >> proxy_set_header Host $http_host; >> proxy_set_header X-NginX-Proxy true; >> >> proxy_pass http://127.0.0.1:3000/; >> proxy_redirect off; >> } >> >> --jerry >> > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > 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 post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Gerald Klein DBA**** [email protected] www.geraldklein.com <http://geraldklein.com/>**** geraldklein.wordpress.com [email protected]**** 708-599-0352**** Arch Awesome, Ranger & Vim the coding triple threat. Linux registered user #548580 -- Job Board: http://jobs.nodejs.org/ Posting guidelines: 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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
