Forum Discussion

Mike_Martinkus's avatar
Mike_Martinkus
Icon for Nimbostratus rankNimbostratus
Aug 21, 2019

Forcing a 404 message after rejecting a URI

I need to for a 404 message after my Irule rejects several URI's. This is my IRULE for the reject:

 

when HTTP_REQUEST {  switch -glob [string tolower [HTTP::path]] {

   "/favicon.ico*" -

   "/admin-console*" -

   "/jbossws*" -

   "/jmx-console*" -

   "/web-console*" -   {

    pool xxx.xxx.xxx_8443_pool

  }

reject

}}

1 Reply