cancel
Showing results for 
Search instead for 
Did you mean: 

How to send all HTTP traffic to error page?

SOLVED
jfatzuora
Not applicable

How to send all HTTP traffic to error page?

I would like to send all HTTP traffic from port 80 to an uploaded error page.

Ist this possible? If so, where do I configure this?

Thanks,jeff

1 ACCEPTED SOLUTION

Accepted Solutions
dnahas
Contributor

Re: How to send all HTTP traffic to error page?

If you wanted to send ALL traffic an uploaded error page, you could use the following request rule.


http.sendResponse( "200 OK", "text/html", resource.get( "error_page.html" ), "" );


Alternatively, This can be accomplished automatically when a problem exists AS AN ERROR PAGE using the contents of a file uploaded to the conf/extra resource folder. Select the error message using the configuration setting "error_file" under the Virtual Server Connection Management settings.

Also see Sending custom error pages

View solution in original post

1 REPLY 1
dnahas
Contributor

Re: How to send all HTTP traffic to error page?

If you wanted to send ALL traffic an uploaded error page, you could use the following request rule.


http.sendResponse( "200 OK", "text/html", resource.get( "error_page.html" ), "" );


Alternatively, This can be accomplished automatically when a problem exists AS AN ERROR PAGE using the contents of a file uploaded to the conf/extra resource folder. Select the error message using the configuration setting "error_file" under the Virtual Server Connection Management settings.

Also see Sending custom error pages