]>
Commit | Line | Data |
---|---|---|
40f84542 AM |
1 | # lighttpd configuration file |
2 | # | |
3 | # use a it as base for lighttpd 1.0.0 and above | |
4 | # | |
5 | # $Id$ | |
6 | ||
7 | ############ Options you really have to take care of #################### | |
8 | ||
9 | ## modules to load | |
10 | # at least mod_access and mod_accesslog should be loaded | |
11 | # all other module should only be loaded if really neccesary | |
12 | # - saves some time | |
13 | # - saves memory | |
14 | server.modules = ( | |
15 | # "mod_rewrite", | |
16 | "mod_access", | |
17 | # "mod_auth", | |
18 | # "mod_status", | |
19 | # "mod_fastcgi", | |
20 | # "mod_simple_vhost", | |
21 | # "mod_evhost", | |
22 | # "mod_cgi", | |
23 | # "mod_compress", | |
24 | "mod_accesslog" ) | |
25 | ||
26 | ## a static document-root, for virtual-hosting take look at the | |
27 | ## server.virtual-* options | |
28 | server.document-root = "/home/services/httpd/html/" | |
29 | ||
30 | ## where to send error-messages to | |
31 | server.errorlog = "/var/log/lighttpd/lighttpd.log" | |
32 | ||
33 | # files to check for if .../ is requested | |
34 | server.indexfiles = ( "index.php", "index.html", | |
35 | "index.htm", "default.htm" ) | |
36 | ||
37 | # mimetype mapping | |
38 | mimetype.assign = ( ".png" => "image/png", | |
39 | ".jpg" => "image/jpeg", | |
40 | ".jpeg" => "image/jpeg", | |
41 | ".gif" => "image/gif", | |
42 | ".html" => "text/html", | |
43 | ".htm" => "text/html", | |
44 | ".pdf" => "application/pdf", | |
45 | ".swf" => "application/x-shockwave-flash", | |
46 | ".spl" => "application/futuresplash", | |
47 | ".txt" => "text/plain", | |
48 | ".tar.gz" => "application/x-tgz", | |
49 | ".tgz" => "application/x-tgz", | |
50 | ".gz" => "application/x-gzip", | |
51 | ".c" => "text/plain", | |
52 | ".conf" => "text/plain" ) | |
53 | ||
54 | #### accesslog module | |
55 | accesslog.filename = "/var/log/lighttpd/access.log" | |
56 | ||
57 | ## deny access the file-extensions | |
58 | # | |
59 | # ~ is for backupfiles from vi, emacs, joe, ... | |
60 | # .inc is often used for code includes which should in general not be part | |
61 | # of the document-root | |
62 | url.access-deny = ( "~", ".inc" ) | |
63 | ||
64 | ||
65 | ||
66 | ######### Options that are good to be but not neccesary to be changed ####### | |
67 | ||
68 | ## bind to port (default: 80) | |
69 | #server.port = 81 | |
70 | ||
71 | ## bind to localhost (default: all interfaces) | |
72 | #server.bind = "grisu.home.kneschke.de" | |
73 | ||
74 | ||
75 | ###### virtual hosts | |
76 | ## | |
77 | ## If you want name-based virtual hosting add the next three settings and load | |
78 | ## mod_simple_vhost | |
79 | ## | |
80 | ## document-root = | |
81 | ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or | |
82 | ## virtual-server-root + http-host + virtual-server-docroot | |
83 | ## | |
84 | #simple-vhost.server-root = "/home/weigon/wwwroot/servers/" | |
85 | #simple-vhost.default-host = "grisu.home.kneschke.de" | |
86 | #simple-vhost.document-root = "/pages/" | |
87 | ||
88 | ||
89 | ## | |
90 | ## Format: <errorfile-prefix><status>.html | |
91 | ## -> ..../status-404.html for 'File not found' | |
92 | #server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-" | |
93 | ||
94 | ## virtual directory listings | |
95 | #server.dir-listing = "enable" | |
96 | ||
97 | ## send unhandled HTTP-header headers to error-log | |
98 | #debug.dump-unknown-headers = "enable" | |
99 | ||
100 | ### only root can use these options | |
101 | # | |
102 | # chroot() to directory (default: no chroot() ) | |
103 | #server.chroot = "/" | |
104 | ||
105 | ## change uid to <uid> (default: don't care) | |
9aa6f5e2 | 106 | server.username = "http" |
40f84542 AM |
107 | |
108 | ## change uid to <uid> (default: don't care) | |
9aa6f5e2 | 109 | server.groupname = "http" |
40f84542 AM |
110 | |
111 | #### compress module | |
112 | #compress.cache-dir = "/tmp/lighttpd/cache/compress/" | |
113 | #compress.filetype = ("text/plain", "text/html") | |
114 | ||
115 | #### fastcgi module | |
116 | #fastcgi.server = ( ".php" => | |
117 | # ( "grisu" => | |
118 | # ( | |
119 | # "host" => "192.168.2.10", | |
120 | # "port" => 1026 | |
121 | # ) | |
122 | # ) | |
123 | # ) | |
124 | ||
125 | #### CGI module | |
126 | #cgi.assign = ( ".pl" => "/usr/bin/perl", | |
127 | # ".cgi" => "/usr/bin/perl" ) | |
128 | # | |
129 | ||
130 | #### SSL engine | |
131 | #ssl.engine = "enable" | |
132 | #ssl.pemfile = "server.pem" | |
133 | ||
134 | #### status module | |
135 | #status.rrd-reports = "enable" | |
136 | #status.rrd-dir = "/home/weigon/wwwroot/logs/" | |
137 | ||
138 | #### auth module | |
139 | #auth.backend = "plain" | |
140 | #auth.backend.plain.userfile = "lighttpd.user" | |
141 | #auth.backend.plain.groupfile = "lighttpd.group" | |
142 | ||
9d396dc3 MW |
143 | #auth.backend.ldap.hostname = "localhost" |
144 | #auth.backend.ldap.base-dn = "dc=my-domain,dc=com" | |
145 | #auth.backend.ldap.filter = "(uid=$)" | |
146 | ||
40f84542 AM |
147 | #auth.require = ( "/server-status" => |
148 | # ( | |
149 | # "method" => "digest", | |
150 | # "realm" => "download archiv", | |
151 | # "require" => "group=www|user=jan|host=192.168.2.10" | |
152 | # ), | |
153 | # "/server-info" => | |
154 | # ( | |
155 | # "method" => "digest", | |
156 | # "realm" => "download archiv", | |
157 | # "require" => "group=www|user=jan|host=192.168.2.10" | |
158 | # ) | |
159 | # ) | |
160 | ||
161 | #### url handling modules (rewrite, redirect, access) | |
162 | #url.rewrite = ( "^/$" => "/server-status" ) | |
163 | #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" ) | |
164 | ||
9d396dc3 MW |
165 | #### expire module |
166 | #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes") | |
167 |