trying to trigger local script on PUT to lighthttpd

Added by smilligan about 10 years ago

We have a peculiar requirement.
We have lighthttpd running on small embedded linux host.
We have an external device (on same subnet) that is able to ONLY do a PUT request method to the lighthttpd server.
We simply want the PUT request method to trigger a simple script within the lighthttpd host.
The problem is that the PUT request method is rejected by the lighthttpd server thus the script that we are trying to call in the URL (http://<lighthttpd-IP>/ will not execute.

Unfortunately we cannot change the request method of the external device to do a simple GET or POST.

So the question is: how can we modify that lighthttpd configuration to allow it to listen and accept a PUT request mehtod?