I am trying to set a rule in the cgi directory, this works, but I would like to avoid it for .cgi.php and .html filetypes
<Files *> SetHandler default-handler </Files>
Can this exception be added to a regular expression?
You need to use FilesMatchwith a negative regex:
FilesMatch
<FilesMatch "^(?!.*\.(cgi|php|html)$).*$"> SetHandler default-handler </FilesMatch>