You are not logged in.

#1 2008-10-31 15:21:54

fgrano
Member
Registered: 2006-10-25
Posts: 29

lighttpd + "cgi-bin" :/

Hi,

i'm trying to setup a lighttpd server and I don't seem to be able to run cgi on it. I have a bunch of programs written in c++ that i'd like to run. It works fine in apache on my other comp but this is a laptop so I figured I'd go for something lighter smile
There are lots of instructions on how to run perl, php, etc... But I've found nothing that works for this scenario.

Offline

#2 2008-11-01 10:12:49

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: lighttpd + "cgi-bin" :/

You've enabled mod_cgi in the config?

http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModCGI


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#3 2008-11-01 12:12:55

fgrano
Member
Registered: 2006-10-25
Posts: 29

Re: lighttpd + "cgi-bin" :/

Dieter@be wrote:

You've enabled mod_cgi in the config?

http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModCGI

Yes, but I got it somewhat working now:

    
#alias.url += ( "/cgi-bin" => server_root + "/cgi-bin" )
$HTTP["url"] =~ "^/cgi-bin" {
     cgi.assign = ( "" => "" )
}

the alias.url option doesn't work, gives a parsing error (somewhere near += ), but I don't quite get what that does anyway... commenting that out seems to result in what i want!

Thanks!

Last edited by fgrano (2008-11-01 12:14:29)

Offline

#4 2008-11-01 16:53:52

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: lighttpd + "cgi-bin" :/

tell us the error message? did you enable mod_alias?


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB