By default, GroupID is configured on the server with port bindings set to 4443 for HTTPS and another randomized port for HTTP. GroupID Data-Service and Self-Service portals are also created and configured to work with the same port bindings. However, some customer environment and policies might have exceptions and require different port combinations, which can be accomplished, keeping in mind the sensitivity of the changes.
This article explains, how this can be accomplished without any disruption in the configured services.
To see the default configurations, go to:
IIS Manager > Sites > GroupIDSite > Right Click > Edit Bindings > Site Bindings Box
Here you would be able to see that the port number for HTTP is set to a random port and for HTTPS you will always find (the default setting is set to) 4443, as shown in the image above.
With this default configuration, the URL of Self-Service portals will be: https://hostname:4443/portalname.
Now let’s suppose that you have a portal called FFFT with a URL: https://demo-8s:4443/ffft/ as per default configurations, and you want to change the port bindings and set it to port 80 and 443 respectively. There are three steps involved.
- Changing ports in IIS.
- Reconfiguring GroupID.
- Updating the database record for the old portals.
Changing Ports in IIS:
Close GroupID Management Console and go to IIS Manager > Sites > GroupIDSite > Edit Bindings > Site Bindings Box.
- Select http > Edit > Edit Site Bindings Box > Change the port number to 80.
Select https > Edit > Edit Site Bindings Box > Change the port number to 443.
After making the changes the Site Bindings dialog box would look like the following
Close the dialog box to save the configuration.
Restart the IIS server and launch GroupID Management Console. This will also launch the Configuration wizard. Click next until you reach the GroupID Services Configuration page, like the one shown below. In Advanced Options, set the Port Number to 443 and Host Name to the GroupID Server name. Click Next to proceed until you finish the wizard.
Updating Database Record for Old Portals:
Open SQL Management Studio > Databases > [your GroupID Database] > Tables > SVC Client > Edit Top 200 Rows
Look for the record with your portal name, which is FFFT in our example. You will see that the URLs in Return URL, Error URL and Realm columns still have the port number 4443. Simply edit and remove the port number part from the URLs, as shown in the image below:
Save the changes and go to your Self-Service portal that was created with old bindings and you will see that the port number from the URL is gone; the URL that was https://demo-8s:4443/ffft/ is now https://demo-8s/ffft/.
Launch the portal and login.