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

Removed old common.conf file. Add awstats.conf and lighttpd.conf files to initramfs/etc/lighttpd folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Apr 14 13:14:39 2011 +0000 (2011-04-14)
parents
children 3ff3ff15c700
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 ".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 ".ps" => "application/postscript",
60 ".jpg" => "image/jpeg",
61 ".jpeg" => "image/jpeg",
62 ".png" => "image/png",
63 ".gif" => "image/gif",
64 ".xbm" => "image/x-xbitmap",
65 ".xpm" => "image/x-xpixmap",
66 ".gz" => "application/x-gzip",
67 ".tar.gz" => "application/x-tgz",
68 ".torrent" => "application/x-bittorrent",
69 ".ogg" => "application/ogg",
70 ".cooklist" => "text/plain",
71 ".tazpkg" => "application/x-tazpkg",
72 "README" => "text/plain",
73 "receipt" => "text/plain",
74 )
76 # Deny access the file-extensions.
77 #
78 url.access-deny = ( "~", ".inc" )
80 # Modules to load.
81 # See /usr/lib/lighttpd for all available modules.
82 #
83 server.modules = (
84 "mod_fastcgi",
85 "mod_access",
86 "mod_accesslog",
87 "mod_alias",
88 "mod_cgi",
89 "mod_rewrite",
90 "mod_status",
91 "mod_userdir",
92 "mod_auth"
93 )
95 # User directory module.
96 #
97 userdir.path = "Public"
98 userdir.exclude-user = ("root")
100 # Status module.
101 #
102 status.status-url = "/server-status"
104 # Compress module
105 #
106 compress.cache-dir = "/var/cache/lighttpd/compress/"
107 compress.filetype = ("text/plain", "text/html", "text/css", "text/xml", "text/javascript")
109 ## CGI module. You can install Perl and assign .pl and .cgi script
110 # to /usr/bin/perl.
111 #
112 $HTTP["url"] =~ "/cgi-bin/" {
113 cgi.assign = (
114 ".sh" => "/bin/sh",
115 ".cgi" => "/bin/sh"
116 )
117 }
119 # Fast CGI modules for PHP.
120 fastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )
121 #
122 fastcgi.server = ( ".php" => ((
123 "bin-path" => "/usr/bin/php-cgi",
124 "socket" => "/tmp/php.socket"
125 )))
126 #)))
128 # Alias urls for localhost (doc, examples and PHP info).
129 #
130 $HTTP["remoteip"] =~ "127.0.0.1" {
131 alias.url += (
132 "/doc/" => "/usr/share/doc/",
133 "/examples/" => "/usr/share/examples/",
134 "/phpinfo/" => "/usr/share/phpinfo/"
135 )
136 }
138 ## Virtual hosts.
139 #
140 # If you want name-based virtual hosting load mod_simple_vhost.
141 #
142 # You can directly put vhost in this file or use a sepate one for all
143 # virtual hosting.
144 #
145 include "vhosts.conf"
147 # Example.org
148 #
149 #$HTTP["host"] =~ "(^|\.)example\.org$" {
150 #server.document-root = "/var/www/vhost/exemple.com/html"
151 #server.errorlog = "/var/log/lighttpd/example.org-error.log"
152 #accesslog.filename = "/var/log/lighttpd/example.org-access.log"
153 #}
155 # Deny access for all image stealers (anti-hotlinking for images)
156 #
157 #$HTTP["referer"] !~ "^($|http://www\.example\.org)" {
158 # url.access-deny = ( ".jpg", ".jpeg", ".png" )
159 #}