Bug#345554: [pkg-lighttpd] Bug#345554: Not fixed

Krzysztof Krzyzaniak eloy at kofeina.net
Mon Aug 28 12:12:52 UTC 2006


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
-- 
-------e-l-o-y---------------------------e-l-o-y- at -k-o-f-e-i-n-a-.-n-e-t------

       jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej




More information about the pkg-lighttpd-maintainers mailing list