Created
December 29, 2008 09:16
-
-
Save khsing/41224 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server.modules = ( | |
"mod_alias", | |
"mod_cgi", | |
"mod_rewrite", | |
"mod_redirect", | |
"mod_access", | |
"mod_fastcgi", | |
"mod_accesslog" ) | |
var.prefix = "/usr/local/lighttpd" | |
var.mimetype = prefix + "/etc/mimetype.conf" | |
var.mywww = "/usr/home/guixing/wwwroot" | |
server.document-root = "/usr/local/apache22/htdocs/" | |
server.errorlog = mywww + "/logs/error.log" | |
index-file.names = ( "index.php", "index.html", | |
"index.htm", "default.htm" ) | |
accesslog.filename = mywww + "/logs/access.log" | |
url.access-deny = ( "~", ".inc" ) | |
include prefix + "/etc/mimetype.conf" | |
$HTTP["url"] =~ "\.pdf$" { | |
server.range-requests = "disable" | |
} | |
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ) | |
server.pid-file = "/var/run/lighttpd.pid" | |
$HTTP["host"] =~ "^www\.khsing\.net" { | |
server.document-root = mywww + "/www.khsing.net" | |
accesslog.filename = mywww + "/logs/www.khsing.net.access.log" | |
} | |
$HTTP["host"] =~ "^khsing\.net" { | |
url.redirect = ( "^/(.*)" => "http://www.khsing.net/" ) | |
} | |
$HTTP["host"] =~ "^blog.khsing\.net" { | |
server.document-root = mywww + "/blog.khsing.net" | |
accesslog.filename = mywww + "/logs/blog.khsing.net.access.log" | |
alias.url = ( "/cgi-bin" => mywww + "/mt", | |
"/mt-static" => mywww + "/mt/mt-static" ) | |
cgi.assign = ( ".pl" => "/usr/bin/perl", | |
".cgi" => "/usr/bin/perl" ) | |
$HTTP["url"] =~ "^/cgi-bin" { | |
cgi.assign = ( "" => "" ) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment