To use this feature, you must convert your user name and password to Base64. For this article, we will use https://www.base64encode.org/
This can be configured as either domain\user or email@example.com.
- Copy the Base64 encoding because you will require this later.
- Configure the heath check settings on your virtual service.
- Set the Stats Codes to 301 and 302. By default, the LoadMaster views 200-299, 301, 302 and 401 as valid status codes. When using Basic authorization you will only want 301 and 302 as a valid response. More information is available here.
- Create a Custom Header with the fields: Authorization: Basic.
A space separator is required for the password. For example, Basic a2VtcHRlc3hr
If required, configure any additional settings.
A trace taken on the LoadMaster shows the Authorization header. If the user and password are valid, then the real server is marked as up.