I have a use case, where I need to execute some script or execute a Linux command if a specific condition is met in an HTTP request. I am checking if any DELETE method request comes to my httpd server, I want to do some work like backing up files. I am not sure how to do that with the Apache web server. But I am aware about the if module in Apache:
<If "%{REQUEST_METHOD} = DELETE">
# execute script or Linux command
</If>
Is it possible with Apache? Can it be achieved in any other web server?