Maintain 2 versions of website with same domain name under IIS

davidwang69
davidwang69 used Ask the Experts™
on
Currently we have dev, test and uat for non-prod environments. And test and uat are going through Akamai and use their Forward Rewrite cloudlet to determine which server to go to.

Now we have a new project. The project team asks separate environments from BAU, so it wouldn't impact the BAU work. They proposed to use dev2, test2 and uat2, but to be able to use Akamai with these new domains we have to do a lot of works, such as create new configs, register new certificates, copy all the rules... and also DNS change, firework change...

I am thinking to still stick to the existing URL, but create a clone site. So for example, under test.XXX.com.au, we have 2 versions of sites: V1 and V2. So is there a way the IIS could determine to pass the request to test.XXX.com.au\V1 or test.XXX.com.au\V2? By default it always goes to V1, but by adding some information, such as something in the header, IIS would know which version to go to. And the URL would always be test.XXX.com.au.

Thank you.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ravi Kumar AtreyCloud Specialist- Azure

Commented:
That's not possible that you open two different versions of website with same URL. You can either do this by different port bindings but can't do same URL for two different versions. As whenever web server get a request for a website it hosts, it always looks for its default page location. So a single website can't have two different document locations at the same time.
How about binding to different ports?

So, https://XXX.com.au is the production site.
https://XXX.com.au:444 is the test site,
https://XXX.com.au:445 is the BAU site etc.

That way they should all work with the same DNS settings and certificate.

Author

Commented:
Thank you for reply. Using different port number could be a possible answer. Currently we use Akamai as CDN provider, and Akamai only allows 80 and 443 for end-users. But I found some posts from Akamai forum. I may talk to Akamai to see if it's possible to use other port.

Akamai allows you to use ports not only 80, 443 but also many ports other than some restricted ports for edge-origin connection. You can use 8080 and 8081 for edge-origin connection. It looks like there's no load balancer in front of those two servers, right? If you can give us more about how you want to use two servers for service, and contracted product with us, we can suggest you more detailed solution suitable for situation.  

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial