node.js - NodeJs и PHP sites on one VPS

392

I have two sites work on Yii framework, and one sites work on Node.js use port 3030. I want use 80 port for Node.js. How to do it? all three sites work...

My config file in node.js

{
  "port": 3030,
  "mongoose": {
    "uri": "mongodb://localhost/side"
  },
  "session" : {
    "secret": "KillJoneDou",
    "key": "sid",
    "resave": true,
    "saveUninitialized": true,
    "cookie": {
      "maxAge": null,
      "path": "/",
      "httpOnly": true
    }
  }
}

I can not just put port 80.

People are also looking for solutions to the problem: php - Runtime configuration for Symfony application

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.