Answer the question
In order to leave comments, you need to log in
How to inject nodejs into an existing project (php, mysql, apache)?
Node.js just started learning. I still can't figure out how to implement node.js into an existing project, for example, to implement a chat and display online\offline statuses and other real-time features. Which way to look? Perhaps there are already some solutions?
Answer the question
In order to leave comments, you need to log in
What is the implementation problem?
Hang up the nodejs server on port N, and write in nginx:
location /nodejs {
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://localhost:N;
proxy_redirect off;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question