Good Day,
I am looking into moving from lighty to Nginx. It's been pretty trivial to set up except for one thing. I have a perl script that neeeds to run in response to a GET. I don't allow anything other than GET nd HEAD.
In lighttpd I only needed to add:
cgi.assign = ( ".pl" => "/usr/local/bin/perl" )
and it ran. While I could use FastCGI, it is total overkill for a prel script of only 1 KB that simply responds with a selected graph. (It does not generate the graph.) The site is utterly trivial. All HTTP. One page that can display a number of graphs that are updated periodically from external sensors by a cron job. Preformane and resources are not an issue and I want ot keep it as simple as humanly possible.
Is there a simple way to do this in Nginx?
Kevin Oberman, Network Engineer, Retired