lighttpd help!!

Hi guys,

I´m having trouble with lighttpd running perl scripts... this is the scenario:

1. I have apache running at primaryIP:80.
2. I have lighttpd running at secondaryIP:80

I have one website that includes by SSI command a /cgi-bin/script.cgi, and returns a javascript and a result of counter. OK its working on apache, but if i open this domain on lighttpd, source code of index.shtml are not showing the return of include, its showing the include sintax.

When I open: domain.com/cgi-bin/script.cgi on apache, its works... but when i open on lighttpd... I receive 500 - Internal Server Error

1. So, any idea why i could not execute .cgi on lighttpd?
2. What need i to do to make this works: Example: lighttpd will execute /cgi-bin/script without .cgi extension.

Here is my lighttpd.conf:
server.modules = (
"mod_access",
"mod_status",
"mod_fastcgi",
"mod_ssi",
"mod_cgi",
"mod_accesslog" )

#now a lot of mimetypes...

server.tag = "lighttpd"
accesslog.filename = "/www/logs/access.log"
url.access-deny = ( "~", ".inc" )
server.pid-file = "/www/run/lighttpd.pid"
server.document-root = "/home/username/public_html/"
server.errorlog = "/www/logs/lighttpd.error.log"
server.indexfiles = ( "index.html", "index.htm", "default.htm", "index.shtml" )

server.port = 80
server.bind = "mysecondaryIP"

$HTTP["host"] =~ "localhost"{
status.status-url = "/server-status"
status.config-url = "/server-config"
}

$HTTP["host"] =~ "php"{
server.indexfiles = ( "index.php", "index.html", "index.shtml" )
server.document-root = "/home/username/public_html
}

cgi.assign = ( ".pl" => "/usr/bin/perl",
".cgi" => "/usr/local/bin/perl" )

#### ssi
ssi.extension = ( ".shtml" )

Please any help is appreciated.

 

 

 

 

Top