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