node.js - Can I serve both PHP and Node apps from the same server but with different internet domains? -


I have a Dabian server with the same IP address, which I use for all my personal projects

For example

  • Code> www.myblog.org:80 To wordpress / index.php
  • my_app.com:80 should give the node instance localhost: at 3000
  • Is it possible in some way? Stop using Apache , if this is what it takes

    You can serve on many domains using a reverse proxy server such as nginx.

    Look at this question here:

    But the basic idea is that a server actually listens on port 80, and this is the correct app server on your machine's internal (local host: 8000) service (PHP, node, etc.).

    It is not technically very difficult, but a new piece of software like NGNX can be a little challenging, of course, definitely!

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -