Startschwierigkeiten mit lighttpd und cgi
Hi Liste,
ich versuche gerade lighttp und cgi zum laufen zu bekommen, aber komm
nicht soweit.
Ich habe lighttpd installiert, cgi mit
lighty-enable-mod cgi
verfügbar gemacht und lighty neu gestartet.
Dann habe ich folgendes script in /usr/lib/cgi-bin gepackt
/usr/lib/cgi-bin$ cat hello.py
#!/usr/bin/env python
print "Content type: text/plain\n\n"
print "Hello World\n"
und ausführbar gemacht.
Wenn ich jetzt auf http://localhost/cgi-bin/hello.py gehe kommt nur die
404 Antwort. In den Logfiles steht auch nur 404 ohne genauere Fehlermeldung.
Die Konfigurationsdatei von cgi ist noch unverändert:
# cat 10-cgi.conf
## CGI programs allow you to enhance the functionality of the server in
a very
## straight and simple way..
##
## Documentation: /usr/share/doc/lighttpd-doc/cgi.txt
## http://www.lighttpd.net/documentation/cgi.html
server.modules += ( "mod_cgi" )
alias.url += ( "/cgi-bin/" => "/usr/lib/cgi-bin/" )
$HTTP["host"] == "localhost" {
alias.url += ( "/cgi-bin/" => "/usr/lib/cgi-bin/" )
$HTTP["url"] =~ "/cgi-bin/" {
cgi.assign = ( "" => "" )
}
}
$HTTP["url"] =~ "/cgi-bin/" {
cgi.assign = ( "" => "" )
}
cgi.assign = (
".pl" => "/usr/bin/perl",
".php" => "/usr/bin/php-cgi",
".py" => "/usr/bin/python",
)
Das System ist Debian/Etch.
Kann mir jemand auf die Sprünge helfen?
Schöne Grüße,
Bastian
Reply to: