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
28
29
30
31
32
33
34
35
36
37
38
39
| # See /usr/share/doc/lighttpd
| # and http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions
|
| server.port = 80
| server.username = "http"
| server.groupname = "http"
| server.document-root = "/srv/http"
| server.errorlog = "/var/log/lighttpd/error.log"
| server.modules += (
| "mod_accesslog",
| "mod_fastcgi"
| )
| accesslog.filename = "/var/log/lighttpd/accesslog.log"
| dir-listing.activate = "enable"
| index-file.names = ( "index.html" )
| mimetype.assign = (
| ".html" => "text/html",
| ".txt" => "text/plain",
| ".css" => "text/css",
| ".js" => "application/x-javascript",
| ".jpg" => "image/jpeg",
| ".jpeg" => "image/jpeg",
| ".bmp" => "image/bmp",
| ".gif" => "image/gif",
| ".png" => "image/png",
| "" => "application/octet-stream"
| )
| fastcgi.debug = 1
| fastcgi.server = (
| ".php" => ((
| "bin-path" => "/usr/bin/php-cgi",
| "socket" => "/tmp/php.socket"
| )),
| #"/ctrlc" => ((
| # "bin-path" => "/opt/my_service/ctrlcweb/mycgi",
| # "check-local" => "disable",
| # "socket" => "/tmp/ctrlcweb-mycgi.socket"
| #))
| )
|
|