ApiServer behind load balancer

Hi,

I'm in the process of deploying the One Identity Manager Web Portal (Html5-based ApiServer) behind load a load balancer, and are struggling to get IIS Rewrite to function how I want.

The load balancer (LB) is redirecting traffic from https://oneim.domain.com/, support.oneim.domain.com/ and password.oneim.domain.com/ to two ApiServers (dedicated windows 2019 servers with IIS) (web1.domain.com and web2.domain.com).


I want the following rewrites to happen in IIS on the webservers:

https://oneim.domain.com/ -> localhost/.../
support.oneim.domain.com/ -> localhost/.../
password.oneim.domain.com/ -> localhost/.../

I would also prefer that users don't see the "ApiServer/html/qer-app-portal/"-part of the url. When browsing the request-page, the url should be oneim.domain.com/.../. Is this possible to archieve?

I don't have much experience with IIS and appreciate all input. I can also post more details (as well as the steps I have tried so far) if needed.

Best regards,

Are Sandnes