How to specify a custom error page when rejecting a request with Undertow filter in EAP 7

Solution Unverified - Updated -

Issue

  • How do I specify a custom error page when rejecting a request with Undertow filter in EAP 7?
  • I'm using a customer expression-filter to reject a request with "403 Forbidden" when the request "Host" header does not match the expected value as described in this knowledge article. But it returns a default 403 error page. How do I specify a customer error page for such a 403 error response?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In