~ubuntu-branches/ubuntu/saucy/lighttpd/saucy

« back to all changes in this revision

Viewing changes to debian/lighttpd.conf

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2010-06-27 13:13:01 UTC
  • mfrom: (6.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100627131301-hno77ea67jxa6m1g
Tags: 1.4.26-3ubuntu1
* Merge from debian unstable (LP: #599010), remaining changes:
  - debian/control: 
    + libgamin-dev rather than libfam-dev to fix startup warning.
    + debhelper Build-depends bumped to (>= 7.0.50) for
      overrides in rules file. 
  - debian/lighttpd.init: clean environment; Check syntax during start/reload
    restart/force-reload.
  - debian/index.html: s/Debian/Ubuntu/g branding on the default page.
  - Added a UFW profile set:
    + debian/lighttpd.dirs: added etc/ufw/applications.d
    + debian/rules: install the ufw profile.
    + debian/control: Suggests on ufw.
  - Add lighttpd-dev package:
    + debian/control: Added lighttpd-dev package; Build-depends on
      automake, libtool
    + debian/lighttpd-dev.install: Added.
  - debian/rules:
    + Add override_dh_installinit to set "defaults 91 09" to not start
      before apache2 but in the same runlevel with the same priority.
  - debian/patches/build-dev-package.patch: Updated
  - debian/lighttpd.conf: Comment 'use-ipv6.pl' by default, which causes
    failure to bind port in ipv4 (LP: #551211)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
############ Options you really have to take care of ####################
5
5
 
6
6
## modules to load
7
 
# mod_access, mod_accesslog and mod_alias are loaded by default
8
 
# all other module should only be loaded if neccesary
9
 
# - saves some time
10
 
# - saves memory
11
 
 
12
 
server.modules              = (
13
 
            "mod_access",
 
7
server.modules = (
14
8
            "mod_alias",
15
 
            "mod_accesslog",
16
9
            "mod_compress",
17
10
#           "mod_rewrite",
18
11
#           "mod_redirect",
19
 
#           "mod_evhost",
20
12
#           "mod_usertrack",
21
 
#           "mod_rrdtool",
22
 
#           "mod_webdav",
23
13
#           "mod_expire",
24
14
#           "mod_flv_streaming",
25
15
#           "mod_evasive"
44
34
## Use the "Content-Type" extended attribute to obtain mime type if possible
45
35
# mimetype.use-xattr = "enable"
46
36
 
47
 
#### accesslog module
48
 
accesslog.filename         = "/var/log/lighttpd/access.log"
49
 
 
50
 
## deny access the file-extensions
51
 
#
52
 
# ~    is for backupfiles from vi, emacs, joe, ...
53
 
# .inc is often used for code includes which should in general not be part
54
 
#      of the document-root
55
 
url.access-deny            = ( "~", ".inc" )
56
 
 
57
37
##
58
38
# which extensions should not be handle via static-file transfer
59
39
#
88
68
dir-listing.encoding        = "utf-8"
89
69
server.dir-listing          = "enable"
90
70
 
91
 
## send unhandled HTTP-header headers to error-log
92
 
#debug.dump-unknown-headers  = "enable"
93
 
 
94
71
### only root can use these options
95
72
#
96
73
# chroot() to directory (default: no chroot() )
97
74
#server.chroot            = "/"
98
75
 
99
 
## change uid to <uid> (default: don't care)
 
76
## change uid to <uid> (default: don't change)
100
77
server.username            = "www-data"
101
78
 
102
 
## change uid to <uid> (default: don't care)
 
79
## change gid to <gid> (default: don't change)
103
80
server.groupname           = "www-data"
104
81
 
105
82
#### compress module
106
83
compress.cache-dir          = "/var/cache/lighttpd/compress/"
107
84
compress.filetype           = ("text/plain", "text/html", "application/x-javascript", "text/css")
108
85
 
109
 
 
110
86
#### url handling modules (rewrite, redirect, access)
111
87
# url.rewrite                 = ( "^/$"             => "/server-status" )
112
88
# url.redirect                = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
113
89
 
114
 
#
115
 
# define a pattern for the host url finding
116
 
# %% => % sign
117
 
# %0 => domain name + tld
118
 
# %1 => tld
119
 
# %2 => domain name without tld
120
 
# %3 => subdomain 1 name
121
 
# %4 => subdomain 2 name
122
 
#
123
 
# evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
124
 
 
125
90
#### expire module
126
91
# expire.url                  = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
127
92
 
128
 
#### rrdtool
129
 
# rrdtool.binary = "/usr/bin/rrdtool"
130
 
# rrdtool.db-name = "/var/www/lighttpd.rrd"
131
 
 
132
 
#### variable usage:
133
 
## variable name without "." is auto prefixed by "var." and becomes "var.bar"
134
 
#bar = 1
135
 
#var.mystring = "foo"
136
 
 
137
 
## integer add
138
 
#bar += 1
139
 
## string concat, with integer cast as string, result: "www.foo1.com"
140
 
#server.name = "www." + mystring + var.bar + ".com"
141
 
## array merge
142
 
#index-file.names = (foo + ".php") + index-file.names
143
 
#index-file.names += (foo + ".php")
144
 
 
145
 
 
146
93
#### external configuration files
147
94
## mimetype mapping
148
95
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
150
97
## load enabled configuration files,
151
98
## read /etc/lighttpd/conf-available/README first
152
99
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
153
 
 
154
 
#### handle Debian Policy Manual, Section 11.5. urls
155
 
## by default allow them only from localhost
156
 
## (This must come last due to #445459)
157
 
## Note: =~ "127.0.0.1" works with ipv6 enabled, whereas == "127.0.0.1" doesn't
158
 
$HTTP["remoteip"] =~ "127.0.0.1" {
159
 
        alias.url += (
160
 
                "/doc/" => "/usr/share/doc/",
161
 
                "/images/" => "/usr/share/images/"
162
 
        )
163
 
        $HTTP["url"] =~ "^/doc/|^/images/" {
164
 
                dir-listing.activate = "enable"
165
 
        }
166
 
}
167