cookutils view lighttpd/lighttpd/lighttpd.conf @ rev 1140

cooker.cgi: use http download
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 08 16:40:51 2019 +0200 (2019-06-08)
parents
children
line source
1 # /etc/lighttpd/lighttpd.conf: SliTaz LightTPD
2 # Web server configuration file.
3 # Configuration du serveur web.
4 #
5 # Documentation : /usr/share/doc/slitaz/handbook/web-server.html
6 # http://trac.lighttpd.net/trac/wiki#Documentation
7 #
8 #
10 # Root documents.
11 #
12 server.document-root = "/var/www/"
14 # Port, default for HTTP traffic is 80.
15 #
16 server.port = 80
18 # Server, user and group name.
19 #
20 server.username = "www"
21 server.groupname = "www"
23 # Server header.
24 # Be nice and keep it at lighttpd and SliTaz GNU/Linux.
25 #
26 server.tag = "lighttpd (SliTaz GNU/Linux)"
28 # Directory listings.
29 #
30 dir-listing.activate = "enable"
31 dir-listing.encoding = "utf-8"
33 # File to open by default.
34 #
35 index-file.names = ( "index.html", "index.php", "index.cgi", "index.sh" )
37 # Log messages.
38 #
39 accesslog.filename = "/var/log/lighttpd/access.log"
40 server.errorlog = "/var/log/lighttpd/error.log"
42 # Server pid file
43 server.pid-file = "/var/run/lighttpd.pid"
45 # MIME type.
46 #
47 mimetype.assign = (
48 # Consult /usr/share/mime/packages/freedesktop.org.xml for MIME Types.
49 # text
50 ".html" => "text/html; charset=UTF-8",
51 ".htm" => "text/html; charset=UTF-8",
52 ".xhtml" => "application/xhtml+xml; charset=UTF-8",
53 ".txt" => "text/plain; charset=UTF-8",
54 ".list" => "text/plain; charset=UTF-8",
55 ".conf" => "text/plain; charset=UTF-8",
56 ".cooklist" => "text/plain; charset=UTF-8",
57 "README" => "text/x-readme; charset=UTF-8",
58 "AUTHORS" => "text/x-authors; charset=UTF-8",
59 "COPYING" => "text/x-copying; charset=UTF-8",
60 "CREDITS" => "text/x-credits; charset=UTF-8",
61 "INSTALL" => "text/x-install; charset=UTF-8",
62 "ChangeLog" => "text/x-changelog; charset=UTF-8",
63 "receipt" => "text/plain; charset=UTF-8",
64 ".log" => "text/x-log; charset=UTF-8",
65 ".diff" => "text/x-patch; charset=UTF-8",
66 ".patch" => "text/x-patch; charset=UTF-8",
67 ".css" => "text/css; charset=UTF-8",
68 ".js" => "application/javascript; charset=UTF-8",
69 ".xml" => "application/xml; charset=UTF-8",
70 ".desktop" => "application/x-desktop; charset=UTF-8",
71 ".m4" => "application/x-m4; charset=UTF-8",
72 "Makefile" => "text/x-makefile",
73 ".md" => "text/markdown",
74 # images
75 ".jpg" => "image/jpeg",
76 ".jpeg" => "image/jpeg",
77 ".png" => "image/png",
78 ".gif" => "image/gif",
79 ".xbm" => "image/x-xbitmap",
80 ".xpm" => "image/x-xpixmap",
81 ".pnm" => "image/x-portable-anymap",
82 ".pbm" => "image/x-portable-bitmap",
83 ".pgm" => "image/x-portable-graymap",
84 ".ppm" => "image/x-portable-pixmap",
85 ".ico" => "image/vnd.microsoft.icon",
86 ".svg" => "image/svg+xml",
87 ".svgz" => "image/svg+xml-compressed",
88 ".bmp" => "image/bmp",
89 ".wbmp" => "image/vnd.wap.wbmp",
90 ".tif" => "image/tiff",
91 ".tiff" => "image/tiff",
92 # documents
93 ".pdf" => "application/pdf",
94 ".ps" => "application/postscript",
95 ".epub" => "application/epub+zip",
96 # archives / packages
97 ".cpio.gz" => "application/x-cpio-compressed",
98 ".cpio" => "application/x-cpio",
99 ".tar.gz" => "application/x-compressed-tar",
100 ".gz" => "application/gzip",
101 ".tar.bz2" => "application/x-bzip-compressed-tar",
102 ".bz2" => "application/x-bzip",
103 ".tar.xz" => "application/x-xz-compressed-tar",
104 ".xz" => "application/x-xz",
105 ".tar.lzma" => "application/x-lzma-compressed-tar",
106 ".lzma" => "application/x-lzma",
107 ".tar.Z" => "application/x-tarz",
108 ".Z" => "application/x-compress",
109 ".tar" => "application/x-tar",
110 ".zip" => "application/zip",
111 ".cab" => "application/vnd.ms-cab-compressed",
112 ".7z" => "application/x-7z-compressed",
113 ".a" => "application/x-archive",
114 ".arj" => "application/x-arj",
115 ".bcpio" => "application/x-bcpio",
116 ".rar" => "application/x-rar",
118 ".tazpkg" => "application/x-tazpkg",
119 # multimedia
120 ".ogg" => "audio/ogg",
121 # scripts / programming languages
122 ".sh" => "application/x-shellscript",
123 ".cgi" => "application/x-shellscript",
124 ".csh" => "application/x-csh",
125 ".awk" => "application/x-awk",
126 ".pl" => "application/x-perl",
127 ".pod" => "application/x-perl",
128 ".php" => "application/x-php",
129 ".py" => "text/x-python",
130 ".pyc" => "application/x-python-bytecode",
131 ".pyo" => "application/x-python-bytecode",
132 ".rb" => "application/x-ruby",
133 ".rs" => "text/rust",
134 ".hh" => "text/x-c++hdr",
135 ".cpp" => "text/x-c++src",
136 ".h" => "text/x-chdr",
137 ".c" => "text/x-csrc",
138 ".cmake" => "text/x-cmake",
139 ".vala" => "text/x-vala",
140 ".vapi" => "text/x-vala",
141 ".p" => "text/x-pascal",
142 ".pas" => "text/x-pascal",
143 ".lua" => "text/x-lua",
144 # other
145 ".torrent" => "application/x-bittorrent",
146 ".iso" => "application/x-cd-image",
147 ".otf" => "application/x-font-otf",
148 ".ttf" => "application/x-font-ttf",
149 ".ttc" => "application/x-font-ttf",
150 ".gmo" => "application/x-gettext-translation",
151 ".mo" => "application/x-gettext-translation",
152 ".po" => "text/x-gettext-translation",
153 ".pot" => "text/x-gettext-translation-template",
154 ".ts" => "text/vnd.trolltech.linguist",
155 ".exe" => "application/x-ms-dos-executable",
156 ".o" => "application/x-object",
157 ".la" => "application/x-shared-library-la",
158 ".so" => "application/x-sharedlib",
159 )
161 # Deny access the file-extensions.
162 #
163 url.access-deny = ( "~", ".inc" )
165 # Modules to load.
166 # See /usr/lib/lighttpd for all available modules.
167 #
168 server.modules = (
169 "mod_access",
170 "mod_accesslog",
171 "mod_alias",
172 "mod_cgi",
173 "mod_rewrite",
174 "mod_status",
175 "mod_userdir",
176 "mod_compress"
177 )
179 # User directory module.
180 #
181 userdir.path = "Public"
182 userdir.exclude-user = ("root")
184 # Status module.
185 #
186 status.status-url = "/server-status"
188 # Compress module
189 #
190 compress.allowed-encodings = ("gzip", "deflate")
191 compress.cache-dir = "/var/cache/lighttpd/compress/"
192 compress.filetype = ("text/plain", "text/html", "application/javascript", "text/css", "text/html")
194 ## CGI module. You can install Perl and assign .pl and .cgi script
195 # to /usr/bin/perl.
196 #
197 $HTTP["url"] =~ "/cgi-bin/" {
198 cgi.assign = (
199 ".sh" => "/bin/sh",
200 ".cgi" => "/bin/sh"
201 )
202 }
204 # Fast CGI modules for PHP.
205 #
206 #fastcgi.server = ( ".php" => ((
207 #"bin-path" => "/usr/bin/php-cgi",
208 #"socket" => "/tmp/php.socket"
209 #)))
211 # Alias URLs for localhost (doc, examples and PHP info).
212 #
213 $HTTP["remoteip"] =~ "127.0.0.1" {
214 alias.url += (
215 "/doc/" => "/usr/share/doc/",
216 "/examples/" => "/usr/share/examples/",
217 "/phpinfo/" => "/usr/share/phpinfo/"
218 )
219 }
221 ## Virtual hosts.
222 #
223 # If you want name-based virtual hosting load mod_simple_vhost.
224 #
225 # You can directly put vhost in this file or use a sepate one for all
226 # virtual hosting.
227 #
228 include "vhosts.conf"
230 # Example.org
231 #
232 #$HTTP["host"] =~ "(^|\.)example\.org$" {
233 #server.document-root = "/var/www/vhost/exemple.com/html"
234 #server.errorlog = "/var/log/lighttpd/example.org-error.log"
235 #accesslog.filename = "/var/log/lighttpd/example.org-access.log"
236 #}
238 # Deny access for all image stealers (anti-hotlinking for images)
239 #
240 #$HTTP["referer"] !~ "^($|http://www\.example\.org)" {
241 # url.access-deny = ( ".jpg", ".jpeg", ".png" )
242 #}