| Configure CGI For Perl Programs in Lighttpd (mod_cgi) |
|
|
|
| How To - Lighttpd | |||||||||||||||||||
| Written by Christian Foronda | |||||||||||||||||||
| Thursday, 08 April 2010 10:11 | |||||||||||||||||||
|
Lighttpd has mod_cgi module that allows you running Perl and other server side programs via cgi-bin directory. Conditional Configuration:
<operator> is one of:
Configuration: Open your lighttpd configuration file: # vi /etc/lighttpd/lighttpd.conf Append the add mod_ cgi to list of server modules:
Usage: Find out your virtual server configuration and append the following: $HTTP["url"] =~ "^/cgi-bin/" {
Test it: Create a file /perl program in /home/lighttpd/www/cgi-bin/sample.pl: #!/usr/bin/perl Save and execute the program (http://yourdomain.com/cgi-bin/sample.pl). Reference: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:Configuration Similar articles
|
|||||||||||||||||||
| Last Updated on Thursday, 08 April 2010 10:13 |


