mercredi 3 juin 2015

How to run Node And apache together in amazon ec2?

hi i have an ec2 instance at amazon which runs on normal 80 port and i have a node running on 3002 port how can i make my node run on port 80 in my amazon ec2 instance along with apache i tried most of online tutorials like reverseproxy mod proxy etc on apache

i need to run my node server on http://ift.tt/1KCIRlA now its running on www.mywebsite.com:3002/

i tried to edit my

/etc/httpd/conf/httpd.conf

like below but had no effect whatsoever

<VirtualHost *:80>

ProxyRequests off

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

<Location />
    ProxyPass /node http://localhost:3002/
    ProxyPassReverse /node http://localhost:3002/
</Location>
</VirtualHost>




Aucun commentaire:

Enregistrer un commentaire