summaryrefslogtreecommitdiffstats
path: root/rules/lighttpd.in
blob: 5d2d33034396add318e6844039f668a291449f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
## SECTION=networking
menuconfig LIGHTTPD
	tristate
	prompt "lighttpd                      "
	select LIBC_M
	select LIBC_DL
	select LIBC_CRYPT
	select ZLIB			if LIGHTTPD_ZLIB
	select BZIP2			if LIGHTTPD_BZ2LIB
	select BZIP2_LIBBZ2		if LIGHTTPD_BZ2LIB
	select ATTR			if LIGHTTPD_ATTR
	select LIBPCRE			if LIGHTTPD_PCRE
	select FAM			if LIGHTTPD_FAM
	select FAM_LIBRARY		if LIGHTTPD_FAM
	select LIBXML2			if LIGHTTPD_WEBDAV_PROPS
	select SQLITE			if LIGHTTPD_WEBDAV_PROPS
	select LIBUUID			if LIGHTTPD_WEBDAV_LOCKS
	select OPENSSL			if LIGHTTPD_OPENSSL
	select LIBMEMCACHED		if LIGHTTPD_MEMCACHED
	select LUA			if LIGHTTPD_LUA
	select LUA_INSTALL_LIBLUA	if LIGHTTPD_LUA
	select PHP5			if LIGHTTPD_MOD_FASTCGI_PHP && RUNTIME
	select BUSYBOX_START_STOP_DAEMON			if LIGHTTPD_STARTSCRIPT
	select BUSYBOX_FEATURE_START_STOP_DAEMON_FANCY		if LIGHTTPD_STARTSCRIPT
	select BUSYBOX_FEATURE_START_STOP_DAEMON_LONG_OPTIONS	if LIGHTTPD_STARTSCRIPT
	help
	  A fast webserver with minimal memory footprint

	  lighttpd is a small webserver and fast webserver developed
	  with security in mind and a lot of features. It has support
	  for
	  * CGI, FastCGI and SSI
	  * virtual hosts
	  * URL rewriting
	  * authentication (plain files, htpasswd, ldap)
	  * transparent content compression
	  * conditional configuration
	  and configuration is straight-forward and easy.


if LIGHTTPD

menu "base settings               "

config LIGHTTPD_ATTR
	bool
	prompt "extended attribute support"
	help
	  Enable extended attribute support.

config LIGHTTPD_FAM
	bool
	depends on STAGING
	prompt "fam"
	help
	  fam/gamin for reducing number of stat() calls.

config LIGHTTPD_LUA
	bool
	prompt "lua engine"
	help
	  lua engine for mod_cml and mod_magnet

config LIGHTTPD_MEMCACHED
	bool
	prompt "memcached storage"
	# fails to build with current libmemcached version
	depends on BROKEN
	help
	  memcached storage for mod_trigger_b4_dl and mod_cml

config LIGHTTPD_OPENSSL
	bool
	prompt "openssl support"
	help
	  Include openssl support.

config LIGHTTPD_PCRE
	bool
	select LIBPCRE
	prompt "pcre support"
	help
	  Enable pcre support.

endmenu

menu "modules                     "

config LIGHTTPD_MOD_ACCESS
	bool
	prompt "mod_access"
	default y
	help
	  Deny access to some files.

config LIGHTTPD_MOD_ACCESSLOG
	bool
	prompt "mod_accesslog"
	default y
	help
	  flexible logging of requests served

config LIGHTTPD_MOD_ALIAS
	bool
	prompt "mod_alias"
	help
	  Specify a special document-root for a given url-subset.

config LIGHTTPD_MOD_AUTH
	bool
	prompt "mod_auth"
	default y
	help
	  User authentication

config LIGHTTPD_MOD_CML
	bool
	select LIGHTTPD_LUA
	prompt "mod_cml"
	help
	  Cache Meta Language

config LIGHTTPD_MOD_COMPRESS
	bool
	prompt "mod_compress"
	help
	  Output compression support.

if LIGHTTPD_MOD_COMPRESS

config LIGHTTPD_ZLIB
	bool
	prompt "zlib support"
	help
	  Enable zlib support for mod_compress.

config LIGHTTPD_BZ2LIB
	bool
	prompt "bz2lib support"
	help
	  Enable bzip2 support for mod_compress.
endif

config LIGHTTPD_MOD_FASTCGI
	bool
	prompt "mod_fastcgi"

if LIGHTTPD_MOD_FASTCGI

config LIGHTTPD_MOD_FASTCGI_PHP
	bool
	prompt "setup php handling with fastcgi"
	help
	  Enables the necessary packages and configuration files
	  to enable PHP support in lighttpd

comment "PHP CGI SAPI must be enabled"
	depends on LIGHTTPD_MOD_FASTCGI_PHP && !PHP5_SAPI_CGI

endif

config LIGHTTPD_MOD_MAGNET
	bool
	select LIGHTTPD_LUA
	prompt "mod_magnet"
	help
	  A module to control the request handling

config LIGHTTPD_MOD_REWRITE
	bool
	prompt "mod_rewrite"
	help
	  Module for URL rewriting

config LIGHTTPD_MOD_TRIGGER_B4_DL
	bool
	select LIGHTTPD_MEMCACHED
	select LIGHTTPD_PCRE
	# needs (currently broken) LIGHTTPD_MEMCACHED
	depends on BROKEN
	prompt "mod_trigger_b4_dl"
	help
	  Module for Anti Hotlinking

config LIGHTTPD_MOD_WEBDAV
	bool
	prompt "mod_webdav"
	help
	  The WebDAV module is a very minimalistic implementation of RFC 2518.
	  Minimalistic means that not all operations are implemented yet.

if LIGHTTPD_MOD_WEBDAV

config LIGHTTPD_WEBDAV_PROPS
	bool
	prompt "properties in mod_webdav"
	help
	  properties in mod_webdav

config LIGHTTPD_WEBDAV_LOCKS
	bool
	select LIGHTTPD_WEBDAV_PROPS
	prompt "locks in mod_webdav"
	help
	  locks in mod_webdav
endif

config LIGHTTPD_MOD_EXTRA
	string
	prompt "extra modules"
	default ""
	help
	  Space sparated list of modules to add to lighttpd.conf

comment "-----------------------------"

config LIGHTTPD_INSTALL_SELECTED_MODULES
	bool
	prompt "only install selected modules"

endmenu

menu "startup                     "

config LIGHTTPD_STARTSCRIPT
	bool
	default y
	prompt "install /etc/init.d/lighttpd"

config LIGHTTPD_SYSTEMD_UNIT
	bool
	default y
	depends on SYSTEMD
	prompt "install systemd unit files for lighttpd"

endmenu

config LIGHTTPD_GENERIC_SITE
	bool
	default y
	prompt "Populate a generic website"
	help
	  This install a generic website into /var/www/index.html
	  from <ptxdist-install>/projectroot/var/www/lighttpd.html
	  and some php demos.

endif