error page
2 TopicsUsing an iRule to respond with a 500 Internal Server Error message
Hi, We have a customer error page setup to serve a nice neat error page when various violations are triggered however the JSON applications don't like this as they are not expecting html. What I would like to do is implement an iRule based on any identifiable data such as a header, to respond with a 500 error. For the moment I am just working on the main idea of serving the 500 rather than the custom error however what I have is not working. If someone can review what I have below and let me know why this is ignored and the custom error continues to load, that would be awesome. Thank you. when HTTP_RESPONSE { if {[HTTP::header value Connection] contains "close"}{ HTTP::respond 500 content "Internal Server Error" } }881Views0likes9CommentsServing a difference Custom Error based on Country for the same ASM policy
Hi, We have 2 similar applications using the same ASM policy. As an example, lets say foo.com.au and foo.co.uk. We have a custom error page defined in the ASM policy along with contact details. Ideally we would want users coming from .com.au site or from AUS geo code to be served the AUS contact details and users coming from .co.uk or from a UK Geo code, to be sent to a different custom error page with UK contact details. Is anyone able to discuss how this can be done? Thank you.166Views0likes1Comment