wok view lighttpd/stuff/etc/lighttpd/lighttpd.conf @ rev 24989

updated nfs-utils (2.4.3 -> 2.6.1)
author Hans-G?nter Theisgen
date Thu May 12 17:03:36 2022 +0100 (2022-05-12)
parents c28da3ca44d2
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 ".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_access",
85 "mod_accesslog",
86 "mod_alias",
87 "mod_cgi",
88 "mod_rewrite",
89 "mod_status",
90 "mod_userdir"
91 )
93 # User directory module.
94 #
95 userdir.path = "Public"
96 userdir.exclude-user = ("root")
98 # Status module.
99 #
100 status.status-url = "/server-status"
102 # Compress module
103 #
104 #compress.cache-dir = "/var/cache/lighttpd/compress/"
105 #compress.filetype = ("text/plain", "text/html")
107 ## CGI module. You can install Perl and assign .pl and .cgi script
108 # to /usr/bin/perl.
109 #
110 $HTTP["url"] =~ "/cgi-bin/" {
111 cgi.assign = (
112 ".sh" => "/bin/sh",
113 ".cgi" => "/bin/sh"
114 )
115 }
117 # Fast CGI modules for PHP.
118 #
119 #fastcgi.server = ( ".php" => ((
120 #"bin-path" => "/usr/bin/php-cgi",
121 #"socket" => "/tmp/php.socket"
122 #)))
124 # Alias urls for localhost (doc, examples and PHP info).
125 #
126 $HTTP["remoteip"] =~ "127.0.0.1" {
127 alias.url += (
128 "/doc/" => "/usr/share/doc/",
129 "/examples/" => "/usr/share/examples/",
130 "/phpinfo/" => "/usr/share/phpinfo/"
131 )
132 }
134 ## Virtual hosts.
135 #
136 # If you want name-based virtual hosting load mod_simple_vhost.
137 #
138 # You can directly put vhost in this file or use a sepate one for all
139 # virtual hosting.
140 #
141 include "vhosts.conf"
143 # Example.org
144 #
145 #$HTTP["host"] =~ "(^|\.)example\.org$" {
146 #server.document-root = "/var/www/vhost/exemple.com/html"
147 #server.errorlog = "/var/log/lighttpd/example.org-error.log"
148 #accesslog.filename = "/var/log/lighttpd/example.org-access.log"
149 #}
151 # Deny access for all image stealers (anti-hotlinking for images)
152 #
153 #$HTTP["referer"] !~ "^($|http://www\.example\.org)" {
154 # url.access-deny = ( ".jpg", ".jpeg", ".png" )
155 #}