M
M
Max Khartanovych2014-03-08 02:12:29
PHP
Max Khartanovych, 2014-03-08 02:12:29

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

2 answer(s)
N
Nikita Gusakov, 2014-03-08
@maxkh

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

D
devunion, 2014-03-08
@devunion

You can also look here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question