Some applications can be accessed from multiple domains. This gives the benefit of having a single application deployment to manage, but the ability to service multiple domains. In our example, we will imagine that we completed the computer adventure game social media site. The API is truly amazing.
It is so incredible in fact that both Alice and Bob have approached us about the opportunity to be resellers and to white label our application, or reuse the API for their own social media sites. This is a somewhat common practice in the internet world where one provider builds an application and other providers simply point their domain to the same application and operate as if it is their own. To achieve this, we need to have distinct URLs:
All of these domains will be set up with their DNS records pointing to our application. This can work without any further changes inside the application. But what if we need to know...