dimanche 28 décembre 2014

how to route example.com to an nginx server running on localhost on amazon ec2 server using route 53

I am very new to aws,route53 and node. I have used route53 to route mydomain.com to the elastic ip and there is a node server running on port 8000 on the ec2 instance. Now I can access the server by



mydomain.com:8000/public/search.html


But I wanted to be able to access it as



mydomain.com


Hence I configured a nginx server on port 80. I am able to 'wget localhost' from the ec2 instance to get the nginx default page. But mydomain.com still shows nothing. How do I get to redirect mydomain.com to the node server running on port 8000.





Aucun commentaire:

Enregistrer un commentaire