Welcome! Log In Create A New Profile

Advanced

Trivial perl execution

Posted by kevmeister 
Trivial perl execution
September 18, 2014 11:43PM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 175
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready