On Wednesday, February 26, 2014 12:06:07 AM UTC-5, gyanesh gouraw wrote:
>
> This node.js code is running on my localhost but when i am running it on 
> Apache server with mod_proxy and mod_http_proxy enabled it gives me the 
> source code of the chatserver rather than executing it. I have modified my 
> conf file so that it proxies every request to port 5000(for testing 
> purpose). Now I have 2 questions: 1)Why do I get the static chatserver page 
> when I open localhost:5000? 2)Why do I get the source code of the 
> chatserver when I open localhost?
>  server code:
>
>
(Especially) if you're using something like socket.io behind Apache, you're 
doing it wrong. You should use something like haproxy (1.5-dev21 as of this 
writing) in front of node instead, as that will scale much better than 
Apache (especially for many persistent connections as generally with 
socket.io).

-- 
-- 
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

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to