1 server.document-root = "/data/project/syj/public"
12 fastcgi.server += ( ".php" =>
14 "bin-path" => "/usr/bin/php5-cgi",
15 "socket" => "/tmp/php.socket",
18 "bin-environment" => (
19 "PHP_FCGI_CHILDREN" => "4",
20 "PHP_FCGI_MAX_REQUESTS" => "10000"
22 "bin-copy-environment" => (
23 "PATH", "SHELL", "USER"
25 "broken-scriptfilename" => "enable"
28 url.rewrite-if-not-file = ("/[^\?]*(\?.*)?$" => "/index.php$1" )
30 index-file.names = ( "index.php" )
32 server.pid-file = "/data/work/syj/lighttpd/lighttpd.pid"
33 server.errorlog = "/data/work/syj/lighttpd/lighttpd-error.log"
34 accesslog.filename = "/data/work/syj/lighttpd/lighttpd-access.log"
35 accesslog.format = "%{X-Forwarded-For}i %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
37 include_shell "/usr/share/lighttpd/create-mime.assign.pl"
39 compress.cache-dir = "/data/work/syj/lighttpd/lighttpd-cache"
40 compress.filetype = ( "application/javascript", "text/css")
41 $HTTP["url"] =~ "\.js$|\.css$|\.png$" {
42 expire.url = ( "" => "access plus 1 years" )