Lighttpd 主机配置与重写规则示例:
$HTTP["host"] == "vgotblog.lan" { server.name = "vgotblog.lan" server.document-root = "/var/www/vgotblog" url.rewrite-once = ( "^/(static|uploads)\/.*" => "$0", "^/index\.php(\/.*)?" => "$0", "^(.*)$" => "index.php$1" ) }
URL重写规则可能可以精简一下:
url.rewrite-once = ( "^/(static|uploads|index\.php)(\/.*)" => "$0", "^(.*)$" => "index.php$1" )
评论 共有 0 条评论
暂无评论,快发表你的评论吧。