title: Serving a multitude of static sites from a wildcard domain in AWS
body: <p>I've got a pretty specific problem here, we've got a system that we already have and maintain, the system involves using subdomains to route people to specific apps.</p>
  
  <p>on a traditional server that goes like follows; we have a wildcard subdomain, *.domain.com that routes to nginx and serves up a folder</p>
  
  <p>so myapp.domain.com > nginx > serves up myapp app folder > myapp folder contains a static site</p>
  
  <p>I'm trying to migrate this in some way to AWS, I basically need to do a similar thing in AWS, I toyed with the idea of putting each static app into an s3 bucket and then the wildcard domain in route 53 but i'm unsure how s3 would know which folder to serve up as that functionality isn't part of route 53</p>
  
  <p>Anyone have any suggestions?</p>
  
  <p>Thanks for all your help</p>