Package:lighttpd
Version:stable,now 1.4.45-1 amd64 [installed]
OS : Debian GNU/Linux 9.5 (stretch)
I have installed lighttpd, if i do : http://<server-ip>/index.html it is
working as expected.
Then i have enabled CGI : sudo lighttpd-enable-mod cgi
i have place a simple "hello.py" (chmod +x) in /usr/lib/cgi-bin
http://<server-ip>/cgi-bin/hello.py gives a 404 Error
i have edit the "/etc/lighttpd/conf-enabled/10-cgi.conf" file :
# /usr/share/doc/lighttpd/cgi.txt
server.modules += ( "mod_cgi" )
$HTTP["url"] =~ "^/cgi-bin/" {
alias.url += ( "/cgi-bin/" => "/var/www/cgi-bin" )
cgi.assign = (
".py" => "/usr/bin/python",
)
}
i have make a directory "cgi-bin" in /var/www and place the hello.py there
http://<server-ip>/cgi-bin/hello.py gives Error 404
Really frustrating, im out of ideas how to solve this.
--
\\\//
-(o o)-
======oOO==(_)==OOo======
Andrzej Więckowski
[email protected]