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