Skip to main content
Version: v7

KB: 2004

How to mask application exceptions and errors with custom pages?

Problem Statement

The client wants to mask application exceptions and errors with custom pages..

We have configured domain "diwakar.slb.com" on SLB and configured back-end server behind the SLB which is having the IP 139.0.0.5. when user tried to open the website is opening fine and all traffic is moving through SLB. User wants set the error pages on specific HTTP status code.

Solution

The client can achieve the requirement by creating the error rule as mentioned below

  1. Login into Haltdos console.

  1. Go to Resourses > Web Pages

  1. Click on the "Add Page" option, write content that to be shown on the page and click on save changes.

  1. Now go under added listener, select error rule from the rules drop-down menus

(Apps>SLB>Listeners>Rules>Error rule>Add Rule)

  1. Configure the rule as per the client requirement for HTTP response code and select the error page required.

  1. Click on save changes

In this way, users can configure the error rule.

  1. Below is the sample error page shown for 404 HTTP status code.