const WEB_ROOT http localhost const STATIC_ROOT http localhost static

1
2
3
4
5
6
7
8
9
const WEB_ROOT = 'http://localhost/';
const STATIC_ROOT = 'http://localhost/static/';
и в lighttpd.conf
$HTTP["host"] =~ "^localhost$" {
server.document-root = "/var/www/trac"
url.rewrite = ("^/static/(.*)^" => "/static/$1", "^/(.*)$" => "/index.php?path=$1")
}