Category: RD Web

The way how to redirect the RDS Webinterface in TP4 of Windows Server 2016 didn’t really change. But from time to time it make sense to put things back on a blogpost.

There are two options to redirect your RDWeb straight to your personal URL.

First you can use the IIS redirection. The feature will be installed when you install the RDWeb Role.

Anyway, make sure the role is installed. Use the easy way of powershell to confirm – run following command:

Get-WindowsFeature -Name *Web-HTTP-Redirect*

After that start your IIS management console and navigate to the Default Website. Open “HTTP Redirect” and enter the URL you want to redirect to. For examlple https://rds.alschneiter.com/RDweb/Pages. This will redirect the user from http to https and also to the right place of the RDWeb.

Second option: You can use the application.Host.config file from IIS. Open the file with notepad or notepad++ in admin mode and navigate to the code:<system.webServer><httpRedirectenabled=“false”/>

First enable the httpRedirect by changing “false” to “true” and add the rest of the code like this:

In some cases (DNS changes, expired certificate, etc.) you have to renew a certificate on your RD Webservers. I hat to do this today on a environment wit two RD Web Servers load balanced by a F5 Loadbalancer. But just replacing the web certificate on the RD Connection broker was not enough.

For some reason the cert was not valid after the replacement.

Solution:

Delete all the old certificates in the personal store of the RD Webservers

Reboot the Webservers

Request a new certificate by using certlm.msc of one of the RD Webservers