lighttpd 配制

$HTTP["host"] == "aaa.cn" {
url.rewrite-once = (  #伪静态部分
    #"^/(.*)?/?files/$" => "/index.php",
    "^/(.*)?/?files/(.*)" => "/wp-includes/ms-files.php?file=$2&author=$1",
    "^/(wp-.*)$" => "$1",
    "^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2",
    "^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "$2",
    "(\?.*)$" => "/index.php$1",
    "." => "/index.php")
server.name = "aaa.cn"
server.document-root = "/opt/we"
server.errorlog = "/opt/lighttpd/log/we-error.log"
accesslog.filename = "/opt/lighttpd/log/we-access.log"
index-file.names = ( "index.php", "index.html", "default.php" )
}

你可能感兴趣的:(lighttpd 配制)