I have a two part question
Question 1
Is it wrong to use Apache as a proxy to my nodeJS server as it cannot handle Websockets. I am using Apache with BOSH presently and I would like to know what is the right way to deploy with node so that I can use websockets too.
My apache configurations are as follows
ServerName example.com
ProxyPass / http://localhost:9000/
ProxyPassReverse / http//localhost:9000/
Order allow,deny
Allow from all
Is this approach completely wrong? I am able to use my app (which works as an API ) without trouble. I would need to add websocket support soon and would this configuration fail then?
Question 2
I would also like to know how can I get NodeJS to write the logs to a file.