1 #
2 # /etc/lighttpd.conf: lighttpd(1) configuration
3 #
4
5 # to use mod_rewrite you have to compile lighttpd with libpcre installed
6 server.modules = ("mod_accesslog")
7
8 server.port = 80
9 server.username = "lighttpd"
10 server.groupname = "lighttpd"
11 server.pid-file = "/var/run/lighttpd.pid"
12
13 # ssl support
14 #server.port = 443
15 #ssl.engine = "enable"
16 #ssl.pemfile = "/etc/ssl/certs/lighttpd.pem"
17
18 # chrooted operation
19 server.chroot = "/var/www"
20 server.document-root = "/htdocs"
21 server.errorlog = "/logs/error_log"
22 accesslog.filename = "/logs/access_log"
23
24 # non-chrooted operation
25 #server.document-root = "/var/www/htdocs"
26 #server.errorlog = "/var/www/logs/error_log"
27 #accesslog.filename = "/var/www/logs/access_log"
28
29 server.dir-listing = "enable"
30 server.indexfiles = ("index.html", "index.htm", "default.htm")
31
32 mimetype.assign = (
33 ".ai" => "application/postscript",
34 ".aif" => "audio/x-aiff",
35 ".aifc" => "audio/x-aiff",
36 ".aiff" => "audio/x-aiff",
37 ".arj" => "application/x-arj-compressed",
38 ".asc" => "text/plain",
39 ".atom" => "application/atom+xml",
40 ".au" => "audio/ulaw",
41 ".avi" => "video/x-msvideo",
42 ".bat" => "application/x-msdos-program",
43 ".bcpio" => "application/x-bcpio",
44 ".bin" => "application/octet-stream",
45 ".bmp" => "image/bmp",
46 ".cdf" => "application/x-netcdf",
47 ".cgm" => "image/cgm",
48 ".class" => "application/octet-stream",
49 ".com" => "application/x-msdos-program",
50 ".cpio" => "application/x-cpio",
51 ".cpt" => "application/mac-compactpro",
52 ".csh" => "application/x-csh",
53 ".css" => "text/css",
54 ".dcr" => "application/x-director",
55 ".deb" => "application/x-debian-package",
56 ".dir" => "application/x-director",
57 ".djv" => "image/vnd.djvu",
58 ".djvu" => "image/vnd.djvu",
59 ".dl" => "video/dl",
60 ".dll" => "application/octet-stream",
61 ".dmg" => "application/octet-stream",
62 ".dms" => "application/octet-stream",
63 ".doc" => "application/msword",
64 ".dtd" => "application/xml-dtd",
65 ".dvi" => "application/x-dvi",
66 ".dxr" => "application/x-director",
67 ".eps" => "application/postscript",
68 ".etx" => "text/x-setext",
69 ".exe" => "application/x-msdos-program",
70 ".ez" => "application/andrew-inset",
71 ".fli" => "video/fli",
72 ".gif" => "image/gif",
73 ".gl" => "video/gl",
74 ".gram" => "application/srgs",
75 ".grxml" => "application/srgs+xml",
76 ".gtar" => "application/x-gtar",
77 ".tar.gz" => "application/x-tar-gz",
78 ".gz" => "application/x-gunzip",
79 ".hdf" => "application/x-hdf",
80 ".hqx" => "application/mac-binhex40",
81 ".htm" => "text/html",
82 ".html" => "text/html",
83 ".ice" => "x-conference/x-cooltalk",
84 ".ico" => "image/x-icon",
85 ".ics" => "text/calendar",
86 ".ief" => "image/ief",
87 ".ifb" => "text/calendar",
88 ".iges" => "model/iges",
89 ".igs" => "model/iges",
90 ".jpe" => "image/jpeg",
91 ".jpeg" => "image/jpeg",
92 ".jpg" => "image/jpeg",
93 ".js" => "application/x-javascript",
94 ".kar" => "audio/midi",
95 ".latex" => "application/x-latex",
96 ".lha" => "application/octet-stream",
97 ".lzh" => "application/octet-stream",
98 ".m3u" => "audio/x-mpegurl",
99 ".m4u" => "video/vnd.mpegurl",
100 ".man" => "application/x-troff-man",
101 ".mathml" => "application/mathml+xml",
102 ".me" => "application/x-troff-me",
103 ".mesh" => "model/mesh",
104 ".mid" => "audio/midi",
105 ".midi" => "audio/midi",
106 ".mif" => "application/x-mif",
107 ".mov" => "video/quicktime",
108 ".movie" => "video/x-sgi-movie",
109 ".mp2" => "video/mpeg",
110 ".mp3" => "audio/mpeg",
111 ".mpe" => "video/mpeg",
112 ".mpeg" => "video/mpeg",
113 ".mpg" => "video/mpeg",
114 ".mpga" => "audio/mpeg",
115 ".ms" => "application/x-troff-ms",
116 ".msh" => "model/mesh",
117 ".mxu" => "video/vnd.mpegurl",
118 ".nc" => "application/x-netcdf",
119 ".oda" => "application/oda",
120 ".ogg" => "application/ogg",
121 ".pbm" => "image/x-portable-bitmap",
122 ".pdb" => "chemical/x-pdb",
123 ".pdf" => "application/pdf",
124 ".pgm" => "image/x-portable-graymap",
125 ".pgn" => "application/x-chess-pgn",
126 ".pgp" => "application/pgp",
127 ".pl" => "application/x-perl",
128 ".pm" => "application/x-perl",
129 ".png" => "image/png",
130 ".pnm" => "image/x-portable-anymap",
131 ".ppm" => "image/x-portable-pixmap",
132 ".ppt" => "application/vnd.ms-powerpoint",
133 ".ps" => "application/postscript",
134 ".qt" => "video/quicktime",
135 ".ra" => "audio/x-pn-realaudio",
136 ".ram" => "audio/x-pn-realaudio",
137 ".rar" => "application/x-rar-compressed",
138 ".ras" => "image/x-cmu-raster",
139 ".rdf" => "application/rdf+xml",
140 ".rgb" => "image/x-rgb",
141 ".rm" => "application/vnd.rn-realmedia",
142 ".roff" => "application/x-troff",
143 ".rtf" => "application/rtf",
144 ".rtx" => "text/richtext",
145 ".sgm" => "text/sgml",
146 ".sgml" => "text/sgml",
147 ".sh" => "application/x-sh",
148 ".shar" => "application/x-shar",
149 ".silo" => "model/mesh",
150 ".sit" => "application/x-stuffit",
151 ".skd" => "application/x-koan",
152 ".skm" => "application/x-koan",
153 ".skp" => "application/x-koan",
154 ".skt" => "application/x-koan",
155 ".smi" => "application/smil",
156 ".smil" => "application/smil",
157 ".snd" => "audio/basic",
158 ".so" => "application/octet-stream",
159 ".spl" => "application/x-futuresplash",
160 ".src" => "application/x-wais-source",
161 ".sv4cpio" => "application/x-sv4cpio",
162 ".sv4crc" => "application/x-sv4crc",
163 ".svg" => "image/svg+xml",
164 ".swf" => "application/x-shockwave-flash",
165 ".t" => "application/x-troff",
166 ".tar" => "application/x-tar",
167 ".tcl" => "application/x-tcl",
168 ".tex" => "application/x-tex",
169 ".texi" => "application/x-texinfo",
170 ".texinfo" => "application/x-texinfo",
171 ".tgz" => "application/x-tar-gz",
172 ".tif" => "image/tiff",
173 ".tiff" => "image/tiff",
174 ".tr" => "application/x-troff",
175 ".tsv" => "text/tab-separated-values",
176 ".txt" => "text/plain",
177 ".ustar" => "application/x-ustar",
178 ".vcd" => "application/x-cdlink",
179 ".vrm" => "x-world/x-vrml",
180 ".vrml" => "x-world/x-vrml",
181 ".vxml" => "application/voicexml+xml",
182 ".wav" => "audio/x-wav",
183 ".wbmp" => "image/vnd.wap.wbmp",
184 ".wbxml" => "application/vnd.wap.wbxml",
185 ".wml" => "text/vnd.wap.wml",
186 ".wmlc" => "application/vnd.wap.wmlc",
187 ".wmls" => "text/vnd.wap.wmlscript",
188 ".wmlsc" => "application/vnd.wap.wmlscriptc",
189 ".wrl" => "x-world/x-vrml",
190 ".xbm" => "image/x-xbitmap",
191 ".xht" => "application/xhtml+xml",
192 ".xhtml" => "application/xhtml+xml",
193 ".xls" => "application/excel",
194 ".xml" => "application/xml",
195 ".xpm" => "image/x-xpixmap",
196 ".xsl" => "application/xml",
197 ".xslt" => "application/xslt+xml",
198 ".xul" => "application/vnd.mozilla.xul+xml",
199 ".xwd" => "image/x-xwindowdump",
200 ".xyz" => "chemical/x-xyz",
201 ".zip" => "application/x-zip-compressed"
202 )
203
204 # End of file
|