| View previous topic :: View next topic |
| Author |
Message |
Bloody
Joined: 31 Oct 2006 Posts: 3
|
Posted: Sep 28, 2007 3:21 am Post subject: Lighttpd support |
|
|
Hello there,
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: | $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 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|