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

Is it possible to have multiple instances of aws under a single domain ? I am trying to host data in several instances, and there'll be one server, but if I want to give my client side script to contact data sources directly without my central server, then it'll be cross domain, which I want to avoid for several reasons. Possible ? Solutions ? Advices ?

share|improve this question
    
No answers yet ?? –  Shrinath Dec 24 '10 at 4:41

1 Answer 1

up vote 0 down vote accepted

I think what you are asking for can't really be done without using cross-domain calls.

Possible solutions I have seen.

Host static content through Amazon S3 (look at the html for twitter sometime) and just make an explicit load from another location.

For dynamic content, you really will need one location returning the data (avoiding this is what a hacker would try to do to abuse your sites good name and return malicious content). For example, you can have the domain do a CNAME lookup to an amazon load balancer, which routes traffic to several apache instances. These in turn talk to several app servers (for example using mod_jk with java) which talk to the database, and all of this data is returned up the chain to the web server which returns it to the client.

Can you try to describe in a bit more detail what you are trying to do? I don't quite get why you can't just have a central server handle the requests and return the data itself.

share|improve this answer
    
There's going to be a lot of data, which I am planning to host on ec2 instances. So wanted a way for browsers to communicate with data directly.. I think this is achievable using iFrames.. will give it a try.. –  Shrinath Dec 29 '10 at 5:58

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.