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
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.