]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd.conf
- sample how to bind additional socket
[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, relative to dirname of main config file
18 include "mime.types.conf"
19
20 ## set the event-handler (read the performance section in the manual)
21 # Linux 2.4+   rt-signals linux-rtsig
22 # Linux 2.6+   epoll   linux-sysepoll
23 #server.event-handler = "linux-sysepoll"
24
25 # maximum number of seconds until a waiting write call times out and closes the connection
26 # default 360
27 #server.max-write-idle = 360
28
29 # Use the "Content-Type" extended attribute to obtain mime type if possible
30 #mimetype.use-xattr = "enable"
31
32 ## send a different Server: header
33 ## be nice and keep it at lighttpd
34 #server.tag = "lighttpd"
35
36 $HTTP["url"] =~ "\.pdf$" {
37         server.range-requests = "disable"
38 }
39
40 ######### Options that are good to be but not neccesary to be changed #######
41
42 ## bind to port (default: 80)
43 server.port = 80
44
45 ## bind to specific host (default: all interfaces)
46 ## the name is resolved to ip at startup only.
47 #server.bind = "grisu.home.kneschke.de"
48
49 ## additionally just bind to localhost:80
50 #$SERVER["socket"] == "127.0.0.1:80"  {}
51
52 ## error-handler for status 404
53 #server.error-handler-404 = "/error-handler.html"
54 #server.error-handler-404 = "/error-handler.php"
55
56 ##
57 ## Format: <errorfile-prefix><status-code>.html
58 ## -> ..../status-404.html for 'File not found'
59 #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
60 #
61 ## enable debugging
62 #debug.log-request-header    = "enable"
63 #debug.log-response-header   = "enable"
64 #debug.log-request-handling  = "enable"
65 #debug.log-file-not-found    = "enable"
66 #debug.log-condition-handling = "enable"
67
68 ### only root can use these options
69 #
70 # chroot() to directory (default: no chroot() )
71 #server.chroot            = "/"
72
73 ## change uid to <uid> (default: don't care)
74 server.username            = "lighttpd"
75
76 ## change uid to <uid> (default: don't care)
77 server.groupname           = "lighttpd"
78
79 # Traffic Shaping
80 #
81 #connection.kbytes-per-second = 32
82 #server.kbytes-per-second = 128
83
84 # webapps configs
85 include_shell "/bin/cat webapps.d/*.conf"
This page took 0.125229 seconds and 4 git commands to generate.