How can I modify the 406 returned by Mod Security triggers?
I am able to modify most other error documents on per domain basis by placing ErrorDocument directive to respective .htaccess files, and they work with the exception of 406 errors.
For example, in domain dummy.com docroot I have the following in .htaccess:
...
ErrorDocument 404 /[path_to_doc] (this works)
ErrorDocument 406 /[path_to_doc] (this does not)
...
When Mod Security triggers on dummy.com, a 406 is returned but it is not the customised 406 document given by ErrorDocument directive above![]()
Thanks



LinkBack URL
About LinkBacks
Reply With Quote
because during P1 URL transformation is not yet performed by apache). Moving those rules to phase 2 resolved the issue. Thanks again.





