]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd.conf
7404b800c5cbe7737f11413462627ae8b02dc4f3
[packages/lighttpd.git] / lighttpd.conf
1 # $Id$
2 # lighttpd configuration file.
3
4 include_shell "/bin/cat conf.d/*.conf"
5
6 ## a static document-root, for virtual-hosting take look at the
7 ## server.virtual-* options
8 server.document-root = "/home/services/lighttpd/html/"
9
10 ## where to send error-messages to
11 server.errorlog = "/var/log/lighttpd/error.log"
12 #server.errorlog-use-syslog = "enable"
13
14 server.pid-file = "/var/run/lighttpd.pid"
15
16 # mimetype mapping
17 include "mime.types.conf"
18 # default mime type
19 mimetype.assign += (
20         "" => "application/octet-stream",
21 )
22
23 ## set the event-handler (read the performance section in the manual)
24 # Linux 2.4+   rt-signals linux-rtsig
25 # Linux 2.6+   epoll   linux-sysepoll
26 #server.event-handler = "linux-sysepoll"
27
28 # default cames from ulimit -n
29 #server.max-fds = 8192
30
31 # maximum number of request within a keep-alive session before the server terminates the connection
32 # default 16
33 #server.max-keep-alive-requests = 16
34
35 # Maximum number of seconds until an idling keep-alive connection is dropped.
36 # default 30
37 #server.max-keep-alive-idle = 30
38
39 # maximum number of seconds until a waiting, non keep-alive read times out and closes the connection
40 # default 60
41 #server.max-read-idle = 60
42
43 # maximum number of seconds until a waiting write call times out and closes the connection
44 # default 360
45 #server.max-write-idle = 360
46
47 # Use the "Content-Type" extended attribute to obtain mime type if possible
48 #mimetype.use-xattr = "enable"
49
50 ## send a different Server: header
51 ## be nice and keep it at lighttpd
52 #server.tag = "lighttpd"
53
54 $HTTP["url"] =~ "\.pdf$" {
55         server.range-requests = "disable"
56 }
57
58 ######### Options that are good to be but not neccesary to be changed #######
59
60 ## bind to port (default: 80)
61 server.port = 80
62
63 ## bind to specific host (default: all interfaces)
64 ## the name is resolved to ip at startup only.
65 #server.bind = "grisu.home.kneschke.de"
66
67 ## additionally just bind to localhost:80
68 #$SERVER["socket"] == "127.0.0.1:80"  {}
69
70 ## error-handler for status 404
71 #server.error-handler-404 = "/error-handler.html"
72 #server.error-handler-404 = "/error-handler.php"
73
74 ##
75 ## Format: <errorfile-prefix><status-code>.html
76 ## -> ..../status-404.html for 'File not found'
77 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
78 #
79 ## enable debugging
80 #debug.log-request-header    = "enable"
81 #debug.log-response-header   = "enable"
82 #debug.log-request-handling  = "enable"
83 #debug.log-file-not-found    = "enable"
84 #debug.log-condition-handling = "enable"
85 #debug.log-timeouts = "enable"
86
87 ### only root can use these options
88 #
89 # chroot() to directory (default: no chroot() )
90 #server.chroot            = "/"
91
92 ## change uid to <uid> (default: don't care)
93 server.username            = "lighttpd"
94
95 ## change uid to <uid> (default: don't care)
96 server.groupname           = "lighttpd"
97
98 # Traffic Shaping
99 #
100 #connection.kbytes-per-second = 32
101 #server.kbytes-per-second = 128
102
103 # webapps configs
104 include_shell "/bin/cat webapps.d/*.conf"
This page took 0.03354 seconds and 3 git commands to generate.