forked from spring/spring-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlighttpd.conf
27 lines (27 loc) · 844 Bytes
/
lighttpd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#use this a guide to configure spring site to run on lighty
server.modules += ("mod_fastcgi", "mod_rewrite" )
fastcgi.server = ( ".php" =>
((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 2,
"idle-timeout" => 20,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "4",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
))
)
url.rewrite-once = (
"^/wiki/([^?]*)(?:\?(.*))?" => "/mediawiki/index.php?title=$1&$2",
"^/wiki" => "/mediawiki/index.php",
"^/jwvideo(\d*).flv$" => "/screenshot.php?topic=$1&video=1",
"^/jwimage(\d*).jpg$" => "/screenshot.php?topic=$1",
"^/download" => "/wiki/Download",
"^/screenshots" => "/media.php"
)
server.document-root = "/var/www/spring-website/wwwroot"