My question is similar to this question, but for Apache. I handle all HTTP errors myself using a custom error handling page.
I noticed today that when I get a 414 error, I get the default Apache 414 error page:
Request-URI Too Long
The requested URL's length exceeds the capacity limit for this server.
Apache/2.4.25 (Debian) Server at host Port 80
I've been trying to read up on how to fix this but I've not gotten very far. However, it seems that what's happening is Apache is not even letting the 414 request get to my site, so my .htaccess
file isn't getting read.
How can I force Apache to pass 414 error requests to my site?? I need to be able to handle the error myself.
I've not encountered this weird issue with any other kind of error, apart from a 414. 404, 403, 401, etc. all work fine - just not this one - so it's not that my error handling isn't working in general. I also have a 414 match in my .htaccess