PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, February 18, 2022

[FIXED] NodeJS and MAMP running on local machine. Is it possible?

 February 18, 2022     local, macos, mamp, node.js     No comments   

Issue

Is it possible to have NodeJS and MAMP running together on the same machine? If so how would i achieve this?

Note: I can run them separately just not together. I assume its down to my NodeJS using the "localhost" as well as MAMP.


Solution

You can setup Proxy and a host.

for example create node01.example.com in Hosts. Then Go to Advanced and enter the following in "Customized virtual host general settings"

ServerAlias node01.example.com

 <Location />

  ProxyPass http://127.0.0.1:3000/

ProxyPassReverse http://127.0.0.1:3000/

</Location>

when you visit node01.example.com you'd pass through MAMP and go to your node ;)



Answered By - Kerim Incedayi
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing