]> dev.renevier.net Git - syj.git/blob - scripts/lighttpd.conf
allow opening terms of use box with space keyboard
[syj.git] / scripts / lighttpd.conf
1 server.document-root = "/data/project/syj/public"
2 server.port               = 10000
3
4 server.modules = (
5             "mod_rewrite",
6             "mod_compress",
7             "mod_fastcgi",
8             "mod_accesslog",
9             "mod_expire",
10 )
11
12 fastcgi.server += ( ".php" =>
13     ((
14         "bin-path" => "/usr/bin/php5-cgi",
15         "socket" => "/tmp/php.socket",
16         "max-procs" => 1,
17         "idle-timeout" => 20,
18         "bin-environment" => (
19             "PHP_FCGI_CHILDREN" => "4",
20             "PHP_FCGI_MAX_REQUESTS" => "10000"
21         ),
22         "bin-copy-environment" => (
23             "PATH", "SHELL", "USER"
24         ),
25         "broken-scriptfilename" => "enable"
26     ))
27 )
28 url.rewrite-if-not-file = ("/[^\?]*(\?.*)?$" => "/index.php$1" )
29
30 index-file.names           = ( "index.php" )
31
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\""
36
37 include_shell "/usr/share/lighttpd/create-mime.assign.pl"
38
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" )
43 }