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).
Later in time, I’ll have new versions for each sub application and I will end with:
- http://v1.app1.domain.com
- http://v2.app1.domain.com
- http://v3.app1.domain.com
- http://v1.app2.domain.com
- http://v2.app2.domain.com
- http://v1.app3.domain.com
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.
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.
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?
Thank you very much.
What you are trying to build is in essence an HTTP proxy. The difference to most other proxies is just that the actual URL is built on the server side.
There many different ways to do this. I’d choose one of the following:
Either way, you will have to