slitaz-modular view initramfs/etc/lighttpd/lighttpd.conf @ rev 177

mkiso.sh: more filenames support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 30 09:46:37 2016 +0200 (2016-03-30)
parents 3ff3ff15c700
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 = "iso8859-1"
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 ".html" => "text/html",
49 ".htm" => "text/html",
50 ".txt" => "text/plain",
51 ".js" => "text/javascript",
52 ".css" => "text/css",
53 ".xml" => "text/xml",
54 ".diff" => "text/plain",
55 ".patch" => "text/plain",
56 ".list" => "text/plain",
57 ".log" => "text/plain",
58 ".conf" => "text/plain",
59 ".pdf" => "application/pdf",
60 ".ps" => "application/postscript",
61 ".jpg" => "image/jpeg",
62 ".jpeg" => "image/jpeg",
63 ".png" => "image/png",
64 ".gif" => "image/gif",
65 ".xbm" => "image/x-xbitmap",
66 ".xpm" => "image/x-xpixmap",
67 ".gz" => "application/x-gzip",
68 ".tar.gz" => "application/x-tgz",
69 ".torrent" => "application/x-bittorrent",
70 ".ogg" => "application/ogg",
71 ".cooklist" => "text/plain",
72 ".tazpkg" => "application/x-tazpkg",
73 "README" => "text/plain",
74 "receipt" => "text/plain",
75 )
77 # Deny access the file-extensions.
78 #
79 url.access-deny = ( "~", ".inc" )
81 # Modules to load.
82 # See /usr/lib/lighttpd for all available modules.
83 #
84 server.modules = (
85 "mod_fastcgi",
86 "mod_access",
87 "mod_accesslog",
88 "mod_alias",
89 "mod_cgi",
90 "mod_rewrite",
91 "mod_status",
92 "mod_userdir",
93 "mod_auth",
94 "mod_proxy"
95 )
97 # User directory module.
98 #
99 userdir.path = "Public"
100 userdir.exclude-user = ("root")
102 # Status module.
103 #
104 status.status-url = "/server-status"
106 # Compress module
107 #
108 compress.cache-dir = "/var/cache/lighttpd/compress/"
109 compress.filetype = ("text/plain", "text/html", "text/css", "text/xml", "text/javascript")
111 ## CGI module. You can install Perl and assign .pl and .cgi script
112 # to /usr/bin/perl.
113 #
114 $HTTP["url"] =~ "/cgi-bin/" {
115 cgi.assign = (
116 ".sh" => "/bin/sh",
117 ".cgi" => "/bin/sh"
118 )
119 }
121 # Fast CGI modules for PHP.
122 fastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )
123 #
124 fastcgi.server = ( ".php" => ((
125 "bin-path" => "/usr/bin/php-cgi",
126 "socket" => "/tmp/php.socket"
127 )))
128 #)))
130 # Alias urls for localhost (doc, examples and PHP info).
131 #
132 $HTTP["remoteip"] =~ "127.0.0.1" {
133 alias.url += (
134 "/doc/" => "/usr/share/doc/",
135 "/examples/" => "/usr/share/examples/",
136 "/phpinfo/" => "/usr/share/phpinfo/"
137 )
138 }
140 ## Virtual hosts.
141 #
142 # If you want name-based virtual hosting load mod_simple_vhost.
143 #
144 # You can directly put vhost in this file or use a sepate one for all
145 # virtual hosting.
146 #
147 include "vhosts.conf"
149 # Example.org
150 #
151 #$HTTP["host"] =~ "(^|\.)example\.org$" {
152 #server.document-root = "/var/www/vhost/exemple.com/html"
153 #server.errorlog = "/var/log/lighttpd/example.org-error.log"
154 #accesslog.filename = "/var/log/lighttpd/example.org-access.log"
155 #}
157 # Deny access for all image stealers (anti-hotlinking for images)
158 #
159 #$HTTP["referer"] !~ "^($|http://www\.example\.org)" {
160 # url.access-deny = ( ".jpg", ".jpeg", ".png" )
161 #}