Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have 2 ec2 server instances - i1 and i2.

If i1 serves a page, and that page has to make queries to i2 without i1's knowledge, how do I do it ?

Is it possible to avoid cross domain calls ?

Thanks in advance

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You can use the internal EC2 network for this. The eth0 IP address is reachable within EC2 if you doesn't filter it with the firewall. It is not necessary to initiate a cross domain call. I hope it helps.

share|improve this answer
    
Do you mean the "Private IP" ? I know instances can communicate between themselves, but I want the page at browser to communicate with instance.. Please explain how this is achieved.. ? –  Shrinath Dec 28 '10 at 4:07
    
If you want the user to use i1 and i2 just construct the html and use URLs from both of them. –  Istvan Dec 28 '10 at 10:00
    
I dont want user to know about i2, the javascript in the page shall be getting data from i2 directly.. And there is no html served from i2, only json –  Shrinath Dec 29 '10 at 4:29
    
So why don't you implement AJAX and call i1 function which gets the data from i2? Btw. you original question is really vague... –  Istvan Dec 29 '10 at 12:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.