Paul wrote: > Hi, > > I don't believe it is fixed. > > Procedure: install lighttpd, then lighty-conf-enable cgi > > Plonk CGI-executable in /usr/lib/cgi-bin (which did not exist - create > yourself). Set permissions etc. I used a C++-based executable > "thebin.cgi" > > force-reload the webserver > > Try to access http://localhost/cgi-bin/thebin.cgi and you will see a 404 > error. > > > I found that the default /images/ and /doc/ aliases in lighttpd.conf > are the cause. If you # comment them out and force-reload the server, > it works correctly.
This will be fixed in next upload, so far please change 10-cgi.conf to: ## 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", ) eloy -- [EMAIL PROTECTED] jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej