]> dev.renevier.net Git - syj.git/blob - scripts/lighttpd.conf
fixes: not possible to upload path after it has been droped from a file
[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 )
10
11 fastcgi.server += ( ".php" =>
12     ((
13         "bin-path" => "/usr/bin/php5-cgi",
14         "socket" => "/tmp/php.socket",
15         "max-procs" => 1,
16         "idle-timeout" => 20,
17         "bin-environment" => (
18             "PHP_FCGI_CHILDREN" => "4",
19             "PHP_FCGI_MAX_REQUESTS" => "10000"
20         ),
21         "bin-copy-environment" => (
22             "PATH", "SHELL", "USER"
23         ),
24         "broken-scriptfilename" => "enable"
25     ))
26 )
27 url.rewrite-if-not-file = ("/[^\?]*(\?.*)?$" => "/index.php$1" )
28
29 index-file.names           = ( "index.php" )
30
31 server.pid-file            = "/data/work/syj/lighttpd/lighttpd.pid"
32 server.errorlog            = "/data/work/syj/lighttpd/lighttpd-error.log"
33 accesslog.filename     = "/data/work/syj/lighttpd/lighttpd-access.log"
34 accesslog.format = "%{X-Forwarded-For}i %V %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
35
36 include_shell "/usr/share/lighttpd/create-mime.assign.pl"
37
38 compress.cache-dir = "/data/work/syj/lighttpd/lighttpd-cache"
39 compress.filetype           = ( "application/javascript", "text/css")