slitaz-tools view stuff/lighttpd/lighttpd.conf @ rev 500

Serverbox: typos
author Paul Issott <paul@slitaz.org>
date Tue Oct 19 19:26:04 2010 +0000 (2010-10-19)
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/user-guide/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/1.4.18 (SliTaz GNU/Linux)"
28 # Directory listings.
29 #
30 dir-listing.activate = "enable"
31 dir-listing.encoding = "iso8859-1"
33 # File to open by default.
34 #
35 index-file.names = ( "index.html","index.php", "index.cgi" )
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 ".html" => "text/html",
49 ".txt" => "text/plain",
50 ".js" => "text/javascript",
51 ".css" => "text/css",
52 ".xml" => "text/xml",
53 ".diff" => "text/plain",
54 ".patch" => "text/plain",
55 ".list" => "text/plain",
56 ".log" => "text/plain",
57 ".conf" => "text/plain",
58 ".pdf" => "application/pdf",
59 ".jpg" => "image/jpeg",
60 ".jpeg" => "image/jpeg",
61 ".png" => "image/png",
62 ".gif" => "image/gif",
63 ".xbm" => "image/x-xbitmap",
64 ".xpm" => "image/x-xpixmap",
65 ".gz" => "application/x-gzip",
66 ".tar.gz" => "application/x-tgz",
67 ".tazpkg" => "application/x-tazpkg",
68 ".torrent" => "application/x-bittorrent",
69 ".ogg" => "application/ogg",
70 "README" => "text/plain",
71 "receipt" => "text/plain",
72 )
74 # Deny access the file-extensions.
75 #
76 url.access-deny = ( "~", ".inc" )
78 # Modules to load.
79 # See /usr/lib/lighttpd for all available modules.
80 #
81 server.modules = (
82 "mod_access",
83 "mod_accesslog",
84 "mod_alias",
85 "mod_auth",
86 "mod_cgi",
87 "mod_compress",
88 "mod_rewrite",
89 "mod_status",
90 "mod_userdir",
91 "mod_fastcgi",
92 )
94 # User directory module.
95 #
96 userdir.path = "Public"
97 userdir.exclude-user = ("root")
99 # Status module.
100 #
101 status.status-url = "/server-status"
103 # Compress module
104 #
105 #compress.cache-dir = "/var/cache/lighttpd/compress/"
106 #compress.filetype = ("text/plain", "text/html")
108 # Alias urls for localhost.
109 $HTTP["remoteip"] =~ "127.0.0.1" {
110 alias.url += (
111 "/doc/" => "/usr/share/doc/",
112 "/examples/" => "/usr/share/examples/"
113 )
114 }
116 # CGI module. You can install Perl and assign .pl and .cgi script
117 # to /usr/bin/perl
118 $HTTP["url"] =~ "/cgi-bin/" {
119 cgi.assign = (
120 ".sh" => "/bin/sh"
121 )
122 }
124 # Fast CGI modules for PHP.
125 #fastcgi.server = ( ".php" => ((
126 # "bin-path" => "/usr/bin/php-cgi",
127 # "socket" => "/tmp/php.socket"
128 # )))
130 # Virtual hosts.
131 #
132 # If you want name-based virtual hosting load mod_simple_vhost.
133 #
134 # You can comment the line below to manage virtual hosting
135 # in this file.
136 #
137 include "vhost.conf"
139 # Example.org
140 #
141 #$HTTP["host"] =~ "(^|\.)example\.org$" {
142 #server.document-root = "/var/www/vhost/exemple.com/html"
143 #server.errorlog = "/var/log/lighttpd/example.org-error.log"
144 #accesslog.filename = "/var/log/lighttpd/example.org-access.log"
145 #}
147 # Deny access for all image stealers (anti-hotlinking for images)
148 #$HTTP["referer"] !~ "^($|http://www\.example\.org)" {
149 # url.access-deny = ( ".jpg", ".jpeg", ".png" )
150 #}