Forum Discussion
Deepak_Nair
Cirrus
Mar 10, 2021HTTP 404 ERROR HANDLING through IRULE
Hello Experts , I am trying to build an irule which will send a HTTP 404 error CODE if the user intentionally or mistakenly typed a wrong URL . Below is the IRULE that i have written : ...
Using bigpipe:
b profile persist srcaddr { parent source_addr }
b virtual testvip1 persist srcaddr
Using tmsh:
modify ltm virtual testvip1 persist replace-all-with { srcaddr }
HTH...Jason
If you are trying to match the path and NOT the query parameters, you'd be better off using HTTP::path, which only includes path information for that instead of HTTP::uri, which includes both path and query parameters.
For your badmatch, are you saying those are still matching, or that they are no longer matching?
finally, are you seeing any tcl errors in the logs when the sessions are being "kicked out"?
FYI, I'm going to be out on PTO for the next few days
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects