I have a node app already deployed on ec2 that redirects port 80 to 3000 using:
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
Now I want to add a Wordpress blog in a subfolder mydomain.com/blog. Must I use apache's ProxyPass as explained here? Won't it slow down node.js?
The example in the link also seems to be more suitable for cases where one wants to add node to apache and not the other way around..because of the URL distinction (/node) and port 8000, or it can fit both cases? Is there any other way to allow node and apache work on the same server? Also, how should the ports be managed?