How to Run Node.js and Apache Together

How to Run Node.js and Apache Together

If you already have Apache/PHP server running but also want to run node.js application, in this tutorial, we will show you how to use ProxyPass directive to make your Apache able to run node.js on any url on the same server!

Follow us on

31 thoughts on “How to Run Node.js and Apache Together

  1. This is probably going to be really useful for setting up this site I am currently building for a client. Thanks a lot!

  2. May be works on a local enviroment but, what if you want to run node.js apps on a real/production enviroment where you running other apps?

  3. Hi. I tried out your video and had two problems. First one: When i type in the URL /node and send a form he say he didn't find jquery and all my Jquery Code on page is not working. (By the way I don't write a normal site. I write a chrome extension. Hope this doesn't make problems with that. In this case Jquery inserted over manifest.json)

    Next Problem is this weird looking Error when i try to run node server.js in console:

    Require stack:

    – C:xampphtdocsurl_blockerjsserver.js

     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:957:15)

     at Function.Module._load (internal/modules/cjs/loader.js:840:27)

     at Module.require (internal/modules/cjs/loader.js:1019:19)

     at require (internal/modules/cjs/helpers.js:77:18)

    at Object.<anonymous> (C:xampphtdocsurl_blockerjsserver.js:1:17)

     at Module._compile (internal/modules/cjs/loader.js:1133:30)

     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)

     at Module.load (internal/modules/cjs/loader.js:977:32)

     at Function.Module._load (internal/modules/cjs/loader.js:877:14)

     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) {

    code: 'MODULE_NOT_FOUND',

    requireStack: [ 'C:\xampp\htdocs\url_blocker\js\server.js' ]

  4. can you elaborate more when you mention " limited number of users?" how exactly does the performance decrease using ProxyPass with Node and Apache?

  5. so does this means I can create a website using both php and node.js? because I want to make a website using php and the chat room using

Leave a Reply

Your email address will not be published. Required fields are marked *