I'm currently running a Windows Server 2016 machine, partnered with Exchange Server 2016 and IIS 10. I'm trying to separate the Exchange owa page and run a web host separate from the same IIS web host such that https://mail.example.com redirects to https://mail.example.com/owa and https://example.com just uses the default root domain. I know this isn't best practice for security reasons however this is the way I have / want to do it.
However with just a normal Exchange and IIS setup all the latest versions to date. I've configured a SSL cert through Let's Encrypt Authority. However with the binding to the SSL certificate the root directory automatically redirects to OWA virtual directory when using https protocol for a secure connection.
Does anyone know how to stop that redirect unless typed as mail.domain.com. I know it's possible as when running server 2008 and exchange 2010 it worked as intended out of the box. I just want a fix as clients aren't seeing my page because of it.
Thanks so much in advance.
Edit: As per conversation in comments I've since tried to create a second site within IIS and bind the hostname to mail.domain.com, however when trying to do the same with https only one ssl cert can be used across all sites with https. So i've used one containing all domains.
However even though setup as such with different sites and hostnames directing to the other sites https://example.com still redirects to https://mail.example.com/owa for some reason.