lighttp: python
June 21, 2009
To get lighttp to run python files, you need to tell it to do so. The standard configuration file that comes with Slitaz only allows scripts to be run in the /cg-bin/ folder. I guess this is personal preference – but I want to be able to run scripts everywhere! This can easily be changed ( the orginal line is commented out):
# $HTTP["url"] =~ "/cgi-bin/" {
$HTTP["url"] =~ "/" {
".cgi" => "/usr/bin/python",
".py" => "/usr/bin/python"
)
How hard can it be, right?