I was looking through this forum and there seem to be no support for lighttpd from SibSoft which is a really bad thing.
However with some help i was able to come so far to this change from the .htaccess to lighttpd.conf:
Code: Select all
$HTTP["host"] =~ "(^|\.)filebong\.com$" {
server.document-root = "/var/www/virtual/filehax.com/htdocs/"
url.rewrite-once = ( "^/$" => "/cgi-bin/index.cgi",
"^/([0-9A-Z]{12})/(.+)$" => "/cgi-bin/index.cgi?act=download1&id=$1&fname=$2",
"^/del\-([0-9A-Z]{12})\-([0-9A-Z]+)/.+$" => "/cgi-bin/index.cgi?del=$1-$2",
"^/([a-z0-9\-\_]+).html$" => "/cgi-bin/index.cgi?act=page&tmpl=$1")
alias.url = ( "/cgi-bin/" => "/var/www/virtual/filehax.com/cgi-bin/" )
$HTTP["url"] =~ "^/cgi-bin/" {
cgi.assign = ( ".cgi" => "/usr/bin/perl" )
}
server.errorlog = "/var/www/virtual/filehax.com/logs/error.log"
accesslog.filename = "/var/www/virtual/filehax.com/logs/access.log"
}
This so far rewrite, give download link, but however it can't delete files and going http://yoursitename.com/? will show the htdocs files instead of rewriting to cgi folder...
So if there is any lighttpd users here and would like to help, we mayeb can put some work together and get this baby working like on apache

Cheers