|Welcome to the Monastery|
Lightweight equivalent of Apache/CGI?by radiantmatrix (Parson)
|on Mar 25, 2005 at 16:21 UTC||Need Help??|
radiantmatrix has asked for the wisdom of the Perl Monks concerning the following question:
O great monks, I beg your patience as I ask a question which is tangentally related to Perl.
I have written a web application in Perl, which works using CGI under Apache. I have been asked to come up with a version that will work on a notebook PC. Now, the obvious choice is to install Apache on the notebook and let 'er rip. But, installing Apache or IIS on PC's is banned outside the development environment. Also, this hardware is old, and Apache on Windows isn't exactly lightweight.
Has anyone in the Monestary found a lightweight HTTP server that supports Perl CGI? I have tried both Google and SuperSearch, but perhaps I am searching foolishly, for I have found no answer. My only other option is to write a new Tk- or Win32::GUI-based interface for the thing; obviously a more painful process.
Of course, I would give preferrential treatment to HTTP servers that are cross-platform. Anyhow, I thank you all in advance for any help ye can give.
Update: At least two people have suggested RYO solutions. And, while I am thankful for their module recommendations, unfortunately I think I'd be better off writing a Tk interface (which I know how to do) than implementing my own HTTPd (which I've never done before).
Update: Thanks to all the monks for the many suggestions. After considering many of them, I settled on HTTPi, which is pure Perl and rather fast. It also gives me all the %ENV vars I need, handles IP-based restriction (e.g. configured to allow connections only from 127.0.0.1) and runs Perl CGI quite well.