IIS Redirect subdomain to a specific site and port

Viewed 201

I have a Windows Server 2019 with IIS installed.

Application Request Routing and Url Rewrite modules are installed too.

I have 2 sites (asp.net applications) :

- Site1 / port 443
- Site2 / port 4431

I have

- mydomain.com
- sub1.mydomain.com

both configured to go to my Windows Server thanks to a DNS A record.

Now I would like to configure IIS to be able to

1. redirect 'mydomain.com' to Site1 on port 443
2. redirect 'sub1.mydomain.com' to Site2 on port 4431

1 : already OK with a simple IIS binding and the DNS record

2 : where I need help

Many thanks for your help!

0 Answers
Related