0
|
1 |
'\" t
|
|
2 |
.\"
|
|
3 |
.\" CDDL HEADER START
|
|
4 |
.\"
|
|
5 |
.\" The contents of this file are subject to the terms of the
|
|
6 |
.\" Common Development and Distribution License (the "License").
|
|
7 |
.\" You may not use this file except in compliance with the License.
|
|
8 |
.\"
|
|
9 |
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
.\" or http://www.opensolaris.org/os/licensing.
|
|
11 |
.\" See the License for the specific language governing permissions
|
|
12 |
.\" and limitations under the License.
|
|
13 |
.\"
|
|
14 |
.\" When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
.\" If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
.\" fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
.\" information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
.\"
|
|
20 |
.\" CDDL HEADER END
|
|
21 |
.\"
|
11
|
22 |
.\" Copyright 2010 Sun Microsystems, Inc. All rights reserved.
|
0
|
23 |
.\" Use is subject to license terms.
|
|
24 |
.\"
|
11
|
25 |
.\" # ident "@(#)lighttpd.1m.sunman 1.4 10/03/16 SMI"
|
0
|
26 |
.\"
|
3
|
27 |
.TH lighttpd 1M "October 2009" "SunOS 5.11" "System Administration Commands"
|
0
|
28 |
.SH NAME
|
|
29 |
lighttpd \- a fast, secure and flexible webserver
|
|
30 |
.SH SYNOPSIS
|
|
31 |
.LP
|
|
32 |
.nf
|
|
33 |
\fBlighttpd\fR
|
|
34 |
.fi
|
|
35 |
|
|
36 |
.SH DESCRIPTION
|
|
37 |
.sp
|
|
38 |
.LP
|
3
|
39 |
The Lighttpd Web Server consists of a server daemon, a watchdog process, loadable server modules, configuration files and documentation.
|
0
|
40 |
.sp
|
|
41 |
.LP
|
|
42 |
.SH FILES
|
|
43 |
.sp
|
|
44 |
.LP
|
|
45 |
The following paths specify the installation locations for Lighttpd:
|
|
46 |
.LP
|
|
47 |
Note :
|
|
48 |
.RS +4
|
|
49 |
.TP
|
|
50 |
.ie t \(bu
|
|
51 |
.el o
|
|
52 |
The string \fB[version]\fR should be expanded
|
|
53 |
to \fB"MAJOR.MINOR"\fR. For example, \fB/usr/lighttpd/1.4/*\fR.
|
|
54 |
.RE
|
|
55 |
.RE
|
|
56 |
.sp
|
|
57 |
.ne 2
|
|
58 |
.mk
|
|
59 |
.na
|
|
60 |
\fB\fB/etc/lighttpd/[version]\fR\fR
|
|
61 |
.ad
|
|
62 |
.sp .6
|
|
63 |
.RS 4n
|
|
64 |
Contains lighttpd configuration files. A new install contains a single, default configuration file \fBlighttpd.conf\fR.
|
|
65 |
.RE
|
|
66 |
|
|
67 |
.sp
|
|
68 |
.ne 2
|
|
69 |
.mk
|
|
70 |
.na
|
|
71 |
\fB\fB/etc/lighttpd/[version]/conf.d\fR\fR
|
|
72 |
.ad
|
|
73 |
.sp .6
|
|
74 |
.RS 4n
|
|
75 |
Contains additional server configuration files. These files generally require some customisation and are therefore not automatically loaded by the main configuration file.
|
|
76 |
.sp
|
|
77 |
.RE
|
|
78 |
|
|
79 |
.sp
|
|
80 |
.ne 2
|
|
81 |
.mk
|
|
82 |
.na
|
|
83 |
\fB\fB/usr/lighttpd/[version]/sbin\fR\fR
|
|
84 |
.ad
|
|
85 |
.sp .6
|
|
86 |
.RS 4n
|
|
87 |
Contains the lighttpd executable and the lighttpd-angel watchdog process.
|
|
88 |
.RE
|
|
89 |
|
|
90 |
.sp
|
|
91 |
.ne 2
|
|
92 |
.mk
|
|
93 |
.na
|
|
94 |
\fB\fB/usr/lighttpd/[version]/man\fR\fR
|
|
95 |
.ad
|
|
96 |
.sp .6
|
|
97 |
.RS 4n
|
|
98 |
Contains man pages for the server and utility programs.
|
|
99 |
.sp
|
|
100 |
Add this directory to your MANPATH to read the Lighttpd man pages. See
|
|
101 |
Notes.
|
|
102 |
.RE
|
|
103 |
|
|
104 |
.sp
|
|
105 |
.ne 2
|
|
106 |
.mk
|
|
107 |
.na
|
|
108 |
\fB\fB/usr/lighttpd/[version]/lib\fR\fR
|
|
109 |
.ad
|
|
110 |
.sp .6
|
|
111 |
.RS 4n
|
|
112 |
Contains the Lighttpd loadable modules. These can be loaded by using directives in the configuration file.
|
|
113 |
.RE
|
|
114 |
|
|
115 |
.sp
|
|
116 |
.ne 2
|
|
117 |
.mk
|
|
118 |
.na
|
|
119 |
\fB\fB/var/lighttpd/[version]/docroot\fR\fR
|
|
120 |
.ad
|
|
121 |
.sp .6
|
|
122 |
.RS 4n
|
|
123 |
The default location for content as specified by the server.document-root directive in the Lightpd configuration file.
|
|
124 |
.RE
|
|
125 |
|
|
126 |
.sp
|
|
127 |
.ne 2
|
|
128 |
.mk
|
|
129 |
.na
|
|
130 |
\fB\fB/var/lighttpd/[version]/logs\fR\fR
|
|
131 |
.ad
|
|
132 |
.sp .6
|
|
133 |
.RS 4n
|
|
134 |
This is the default location for the Lighttpd log files.
|
|
135 |
.sp
|
|
136 |
The formats, names, and locations of the files in this directory can
|
|
137 |
be altered by various configuration directives in the \fBlighttpd.conf\fR file.
|
|
138 |
.RE
|
|
139 |
|
|
140 |
.SH SERVICE MANAGEMENT FACILITY
|
|
141 |
.sp
|
|
142 |
.LP
|
11
|
143 |
The \fBlighttpd14\fR package for Solaris (\fBweb/server/lighttpd-14\fR) includes all of the files necessary to register Lighttpd with the Service Management Facility described in \fISMF(5)\fR. The following procedure describes the steps to automate service management for lighttpd.
|
0
|
144 |
|
|
145 |
Note :
|
|
146 |
.RS +4
|
|
147 |
.TP
|
|
148 |
.ie t \(bu
|
|
149 |
.el o
|
|
150 |
The the full name of the lighttpd service is svc:/network/http:lighttpd14
|
|
151 |
This can be abbreviated to lighttpd14 which is the \fBinstance name\fR of the service.
|
|
152 |
.RE
|
|
153 |
|
|
154 |
.RS +4
|
|
155 |
.TP
|
|
156 |
1.
|
|
157 |
To enable the lighttpd14 service.
|
|
158 |
.sp
|
|
159 |
.in +2
|
|
160 |
.nf
|
|
161 |
example% svcadm enable lighttpd14
|
|
162 |
.fi
|
|
163 |
.in -2
|
|
164 |
|
|
165 |
The state of the service instance changes to \fBonline\fR,
|
|
166 |
and the lighttpd14 service instance is now available:
|
|
167 |
.sp
|
|
168 |
.in +2
|
|
169 |
.nf
|
|
170 |
example% svcs lighttpd14
|
|
171 |
STATE STIME FMRI
|
|
172 |
online 11:22:17 svc:/network/http:lighttpd14
|
|
173 |
.fi
|
|
174 |
.in -2
|
|
175 |
.sp
|
|
176 |
|
|
177 |
.RE
|
|
178 |
.RS +4
|
|
179 |
.TP
|
|
180 |
2.
|
|
181 |
To disable the lighttpd14 service instance,
|
|
182 |
.sp
|
|
183 |
.in +2
|
|
184 |
.nf
|
|
185 |
example% svcadm disable lighttpd14
|
|
186 |
.fi
|
|
187 |
.in -2
|
|
188 |
|
|
189 |
The state of the service instance changes to \fBdisabled\fR,
|
|
190 |
and the lighttpd service instance is no longer available:
|
|
191 |
.sp
|
|
192 |
.in +2
|
|
193 |
.nf
|
|
194 |
example% svcs lighttpd14
|
|
195 |
STATE STIME FMRI
|
|
196 |
disabled 11:35:15 svc:/network/http:lighttpd14
|
|
197 |
.fi
|
|
198 |
.in -2
|
|
199 |
.sp
|
|
200 |
.RE
|
|
201 |
|
|
202 |
.SH USER AUTHORIZATIONS
|
|
203 |
.sp
|
|
204 |
.LP
|
|
205 |
You can use \fBRBAC(5)\fR to authorize otherwise non-privileged users to manage
|
|
206 |
the \fBlighttpd14\fR service.
|
|
207 |
To allow a user to manage the \fBlighttpd14\fR service states, add a line to
|
|
208 |
\fB/etc/user_attr\fR of the form:
|
|
209 |
.sp
|
|
210 |
.in +2
|
|
211 |
.nf
|
|
212 |
<username>::::type=role;profiles=Lighttpd 14 Administration,All
|
|
213 |
.fi
|
|
214 |
.in -2
|
|
215 |
.sp
|
|
216 |
.LP
|
|
217 |
Where <username> is the name of the user being granted the authorisation. If the user already has an entry in \fB/etc/user_attr\fR, add the "Lighttpd 14 Administration" profile to his or her entry.
|
|
218 |
.sp
|
|
219 |
.RE
|
|
220 |
|
3
|
221 |
.SH SPAWN-FCGI CHANGES
|
|
222 |
.LP
|
11
|
223 |
Version 1.4.23 of the Lighttpd web server sees the refactoring of the spawn-fcgi utility into a separate source distribution and as a result, spawn-fcgi has been spun out into a separate package named web/fastcgi/spawn-fcgi. The Lighttpd packages install web/fastcgi/spawn-fcgi as a dependency and provide symbolic links from the original locations of the spawn-fcgi executable and manpage to the locations delivered by the spawn-fcgi package, i.e.:
|
3
|
224 |
.sp
|
|
225 |
.in +2
|
|
226 |
.nf
|
|
227 |
/usr/lighttpd/1.4/bin/spawn-fcgi -> /usr/bin/spawn-fcgi
|
|
228 |
|
|
229 |
/usr/lighttpd/1.4/share/man/man1/spawn-fcgi.1
|
|
230 |
-> /usr/share/man/man1/spawn-fcgi.1
|
|
231 |
.fi
|
|
232 |
.in -2
|
|
233 |
.sp
|
|
234 |
.LP
|
|
235 |
These symbolic links may be removed in a future update of the Lighttpd packages
|
|
236 |
.sp
|
|
237 |
.RE
|
|
238 |
|
|
239 |
.SH CONFIGURATION OPTIONS
|
|
240 |
.sp
|
|
241 |
.LP
|
|
242 |
At this time, use of multiple Lighttpd worker processes is discouraged and is not supported by the Lighttpd community. From version 1.4.23 the supplied configuration file has the following line removed:
|
|
243 |
.sp
|
|
244 |
.in +2
|
|
245 |
.nf
|
|
246 |
server.max-worker = 4
|
|
247 |
.fi
|
|
248 |
.in -2
|
|
249 |
.sp
|
|
250 |
.LP
|
|
251 |
The result of this change is that by default, Lighttpd will be run with a single worker process
|
|
252 |
.sp
|
|
253 |
.RE
|
|
254 |
|
0
|
255 |
.SH ATTRIBUTES
|
|
256 |
.sp
|
|
257 |
.LP
|
|
258 |
See attributes(5) for descriptions of the following attributes:
|
|
259 |
.sp
|
|
260 |
|
|
261 |
.sp
|
|
262 |
.TS
|
|
263 |
tab() box;
|
|
264 |
cw(2.75i) |cw(2.75i)
|
|
265 |
lw(2.75i) |lw(2.75i)
|
|
266 |
.
|
|
267 |
AttributeAttribute Value
|
|
268 |
_
|
|
269 |
AvailabilityT{
|
|
270 |
.nf
|
11
|
271 |
web/server/lighttpd-14
|
0
|
272 |
.fi
|
|
273 |
T}
|
|
274 |
_
|
|
275 |
Interface StabilityUncommitted
|
|
276 |
.TE
|
|
277 |
|
|
278 |
.SH SEE ALSO
|
|
279 |
.sp
|
|
280 |
.LP
|
|
281 |
\fBattributes(5)\fR, \fBlighttpd(8)\fR, \fBspawn-fcgi(8)\fR, \fBlighttpd-angel(8)\fR
|
|
282 |
.sp
|
|
283 |
.LP
|
|
284 |
http://www.lighttpd.net
|
|
285 |
.SH NOTES
|
|
286 |
.sp
|
|
287 |
.LP
|
|
288 |
In addition to the documentation and man pages included with Solaris,
|
|
289 |
more information is available at http://www.lighttpd.net\&.
|
|
290 |
.sp
|
|
291 |
.LP
|
|
292 |
Source for Lighttpd is available at http://opensolaris.org\&.
|
|
293 |
.sp
|
|
294 |
.LP
|
|
295 |
The Lighttpd man pages are provided with the programming modules. To
|
|
296 |
view the manual pages for the Lighttpd modules with the man command, add \fB/usr/lighttpd/[version]/man\fR to the MANPATH environment variable.
|
|
297 |
See \fBman(1)\fR for more information. Running \fBcatman(1M)\fR on
|
|
298 |
the Lighttpd manual pages is not supported.
|