title: Proxy - ASP.NET with or without MVC
body: <p>I'm working on one multi-tenancy application, where each tenant will have access to 1 or more "sub applications" (different ASP.NET MVC websites).</p>
  
  <ul>
  <li><a href="http://v1.app1.domain.com" rel="nofollow">http://v1.app1.domain.com</a></li>
  <li><a href="http://v1.app2.domain.com" rel="nofollow">http://v1.app2.domain.com</a></li>
  <li><a href="http://v1.app3.domain.com" rel="nofollow">http://v1.app3.domain.com</a></li>
  </ul>
  
  <p>Later in time, I'll have new versions for each sub application and I will end with:</p>
  
  <ul>
  <li><a href="http://v1.app1.domain.com" rel="nofollow">http://v1.app1.domain.com</a></li>
  <li><a href="http://v2.app1.domain.com" rel="nofollow">http://v2.app1.domain.com</a></li>
  <li><a href="http://v3.app1.domain.com" rel="nofollow">http://v3.app1.domain.com</a></li>
  <li><a href="http://v1.app2.domain.com" rel="nofollow">http://v1.app2.domain.com</a></li>
  <li><a href="http://v2.app2.domain.com" rel="nofollow">http://v2.app2.domain.com</a></li>
  <li><a href="http://v1.app3.domain.com" rel="nofollow">http://v1.app3.domain.com</a></li>
  </ul>
  
  <p>Some tenants will want to have access to the latest versions, and some will still be using old ones.
  This is what I've done.</p>
  
  <p>Now I would like to keep "the subdomain versions" hidden for them. They will only access the domain: app1.domain.com
  This "internal smart proxy" will have the core to know which version this tenant has access.</p>
  
  <p>Anyone knows how I can do this? In a way that all my internal urls (links, images, JS, css, etc...), AJAX,etc,  will work correcly?
  Or point me to some tutorials/blog/forums where i can find that can help me?</p>
  
  <p>Thank you very much.</p>