]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd.conf
- add sample server config to %doc (in case package one gets outdated again)
[packages/lighttpd.git] / lighttpd.conf
CommitLineData
40f84542
AM
1# lighttpd configuration file
2#
3# use a it as base for lighttpd 1.0.0 and above
4#
5# $Id$
6
7############ Options you really have to take care of ####################
8
9## modules to load
10# at least mod_access and mod_accesslog should be loaded
11# all other module should only be loaded if really neccesary
12# - saves some time
13# - saves memory
14server.modules = (
15# "mod_rewrite",
16 "mod_access",
17# "mod_auth",
18# "mod_status",
19# "mod_fastcgi",
20# "mod_simple_vhost",
21# "mod_evhost",
22# "mod_cgi",
23# "mod_compress",
5c1a52cc
MW
24# "mod_user_dir",
25# "mod_alias",
40f84542
AM
26 "mod_accesslog" )
27
28## a static document-root, for virtual-hosting take look at the
29## server.virtual-* options
a2a346d6 30server.document-root = "/home/services/lighttpd/html/"
40f84542
AM
31
32## where to send error-messages to
33server.errorlog = "/var/log/lighttpd/lighttpd.log"
34
35# files to check for if .../ is requested
36server.indexfiles = ( "index.php", "index.html",
37 "index.htm", "default.htm" )
38
39# mimetype mapping
40mimetype.assign = ( ".png" => "image/png",
41 ".jpg" => "image/jpeg",
42 ".jpeg" => "image/jpeg",
43 ".gif" => "image/gif",
44 ".html" => "text/html",
45 ".htm" => "text/html",
46 ".pdf" => "application/pdf",
47 ".swf" => "application/x-shockwave-flash",
48 ".spl" => "application/futuresplash",
49 ".txt" => "text/plain",
50 ".tar.gz" => "application/x-tgz",
51 ".tgz" => "application/x-tgz",
52 ".gz" => "application/x-gzip",
53 ".c" => "text/plain",
54 ".conf" => "text/plain" )
55
2f595477 56# use "Content-Type" extended attribute for mime type if possible
57# mimetype.use-xattr = "enable"
58
40f84542
AM
59#### accesslog module
60accesslog.filename = "/var/log/lighttpd/access.log"
61
62## deny access the file-extensions
63#
64# ~ is for backupfiles from vi, emacs, joe, ...
65# .inc is often used for code includes which should in general not be part
66# of the document-root
67url.access-deny = ( "~", ".inc" )
68
69
70
71######### Options that are good to be but not neccesary to be changed #######
72
73## bind to port (default: 80)
74#server.port = 81
75
76## bind to localhost (default: all interfaces)
77#server.bind = "grisu.home.kneschke.de"
78
79
80###### virtual hosts
81##
82## If you want name-based virtual hosting add the next three settings and load
83## mod_simple_vhost
84##
85## document-root =
86## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
87## virtual-server-root + http-host + virtual-server-docroot
88##
89#simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
90#simple-vhost.default-host = "grisu.home.kneschke.de"
91#simple-vhost.document-root = "/pages/"
92
93
94##
95## Format: <errorfile-prefix><status>.html
96## -> ..../status-404.html for 'File not found'
97#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
98
99## virtual directory listings
100#server.dir-listing = "enable"
101
102## send unhandled HTTP-header headers to error-log
103#debug.dump-unknown-headers = "enable"
104
105### only root can use these options
106#
107# chroot() to directory (default: no chroot() )
108#server.chroot = "/"
109
110## change uid to <uid> (default: don't care)
a2a346d6 111server.username = "lighttpd"
40f84542
AM
112
113## change uid to <uid> (default: don't care)
a2a346d6 114server.groupname = "lighttpd"
40f84542
AM
115
116#### compress module
117#compress.cache-dir = "/tmp/lighttpd/cache/compress/"
118#compress.filetype = ("text/plain", "text/html")
119
120#### fastcgi module
121#fastcgi.server = ( ".php" =>
122# ( "grisu" =>
123# (
124# "host" => "192.168.2.10",
125# "port" => 1026
126# )
127# )
128# )
129
130#### CGI module
131#cgi.assign = ( ".pl" => "/usr/bin/perl",
132# ".cgi" => "/usr/bin/perl" )
133#
134
135#### SSL engine
136#ssl.engine = "enable"
137#ssl.pemfile = "server.pem"
138
139#### status module
140#status.rrd-reports = "enable"
141#status.rrd-dir = "/home/weigon/wwwroot/logs/"
142
143#### auth module
144#auth.backend = "plain"
145#auth.backend.plain.userfile = "lighttpd.user"
146#auth.backend.plain.groupfile = "lighttpd.group"
147
9d396dc3
MW
148#auth.backend.ldap.hostname = "localhost"
149#auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
150#auth.backend.ldap.filter = "(uid=$)"
151
40f84542
AM
152#auth.require = ( "/server-status" =>
153# (
154# "method" => "digest",
155# "realm" => "download archiv",
156# "require" => "group=www|user=jan|host=192.168.2.10"
157# ),
158# "/server-info" =>
159# (
160# "method" => "digest",
161# "realm" => "download archiv",
162# "require" => "group=www|user=jan|host=192.168.2.10"
163# )
164# )
165
166#### url handling modules (rewrite, redirect, access)
167#url.rewrite = ( "^/$" => "/server-status" )
168#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
169
9d396dc3
MW
170#### expire module
171#expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
172
5c1a52cc
MW
173#### userdir module
174#userdir.path = "public_html"
175#userdir.exclude-user = ( "root", "postmaster" )
176#
177## if set, only users from this list may use the feature
178#userdir.include-user = ""
179
180#### alias module
181#alias.url = ( "/cgi-bin/" => "/var/www/servers/www.example.org/cgi-bin/" )
182
This page took 0.076349 seconds and 4 git commands to generate.