I'm a web hoster and a site owner.
As a hoster I wan't to disable the use of some module directives within the .htaccess for my customers sites.
Since some sites serves as a CDN, I want to disable for example AddHandler (and a few more) from mod_mime. So that even if php files are uploaded, they can't execute.
While directives like RewriteRule from mod_rewrite is still good to have.
To explain it in pseude code:
AllowOverride All -mod_mime -DocumentRoot -CustomLog -ErrorLog
The document https://httpd.apache.org/docs/2.2/mod/mod_mime.html#AddHandler says the Context is .htaccess, could I limit the Context of this module directive? I'm not afraid of patching or recompiling it.
How would I solve this? Thanks!