node.js - How to run Node And apache together in amazon ec2? -


hi have ec2 instance @ amazon runs on normal 80 port , have node running on 3002 port how can make node run on port 80 in amazon ec2 instance along apache tried of online tutorials reverseproxy mod proxy etc on apache

i need run node server on www.mywebsite.com/node running on www.mywebsite.com:3002/

i tried edit

/etc/httpd/conf/httpd.conf

of apache below had no effect whatsoever

<virtualhost *:80>  proxyrequests off  <proxy *>     order deny,allow     allow </proxy>  <location />     proxypass /node http://localhost:3002/     proxypassreverse /node http://localhost:3002/ </location> </virtualhost> 

i've not used apache ages think location mod_proxy like:

<location /node >     proxypass http://localhost:3002/ </location> 

also, have restarted apache?

service httpd restart should it.


Comments