0
|
1 |
'\" te
|
|
2 |
.\" Copyright (c) 2008, Sun Microsystems Inc.
|
|
3 |
.\" All Rights Reserved.
|
|
4 |
.TH apache2 1M "February 2008" "SunOS 5.11" "System Administration Commands"
|
|
5 |
.SH NAME
|
|
6 |
apache2 \- Apache HTTP Server Version 2 overview
|
|
7 |
.SH SYNOPSIS
|
|
8 |
.LP
|
|
9 |
.nf
|
|
10 |
\fBapache2\fR
|
|
11 |
.fi
|
|
12 |
|
|
13 |
.SH DESCRIPTION
|
|
14 |
.sp
|
|
15 |
.LP
|
|
16 |
Apache HTTP Server Version 2 (Apache 2) consists of a main server daemon,
|
|
17 |
loadable server modules, some additional support utilities, configuration
|
|
18 |
files, and documentation.
|
|
19 |
.sp
|
|
20 |
.LP
|
|
21 |
Both 32-bit and 64-bit versions of the servers are installed. It also
|
|
22 |
includes two of the most popular MPMs - Prefork and Worker.
|
|
23 |
.SH FILES
|
|
24 |
.sp
|
|
25 |
.LP
|
|
26 |
The following files specify the installation locations for Apache 2:
|
|
27 |
.LP
|
|
28 |
Note :
|
|
29 |
.RS +4
|
|
30 |
.TP
|
|
31 |
.ie t \(bu
|
|
32 |
.el o
|
|
33 |
The string \fB[version]\fR should be expanded
|
|
34 |
to \fB"MAJOR.MINOR"\fR. For example, \fB/usr/apache2/2.2/*\fR.
|
|
35 |
.RE
|
|
36 |
.RS +4
|
|
37 |
.TP
|
|
38 |
.ie t \(bu
|
|
39 |
.el o
|
|
40 |
\fB[isainfo]\fR represents the output of \fBisainfo
|
|
41 |
-n\fR on 64-bit platform.
|
|
42 |
.RE
|
|
43 |
.RS +4
|
|
44 |
.TP
|
|
45 |
.ie t \(bu
|
|
46 |
.el o
|
|
47 |
To find the current version of Apache 2 installed on your
|
|
48 |
machine, type the following command:
|
|
49 |
.sp
|
|
50 |
.in +2
|
|
51 |
.nf
|
|
52 |
$ /usr/apache2/[version]/bin/apachectl -v
|
|
53 |
.fi
|
|
54 |
.in -2
|
|
55 |
.sp
|
|
56 |
|
|
57 |
.RE
|
|
58 |
.RE
|
|
59 |
.sp
|
|
60 |
.ne 2
|
|
61 |
.mk
|
|
62 |
.na
|
|
63 |
\fB\fB/etc/apache2/[version]/\fR\fR
|
|
64 |
.ad
|
|
65 |
.sp .6
|
|
66 |
.RS 4n
|
|
67 |
Contains server configuration files. A newly-installed server
|
|
68 |
contains a default \fBhttpd.conf\fR file. This is the main configuration file.
|
|
69 |
.RE
|
|
70 |
|
|
71 |
.sp
|
|
72 |
.ne 2
|
|
73 |
.mk
|
|
74 |
.na
|
|
75 |
\fB\fB/etc/apache2/[version]/conf.d/\fR\fR
|
|
76 |
.ad
|
|
77 |
.sp .6
|
|
78 |
.RS 4n
|
|
79 |
Contains additional server configuration files.
|
|
80 |
.sp
|
|
81 |
By default, server will load all the \fB\&.conf\fR files
|
|
82 |
placed under this directory. It also has 2 additional \fB\&.load\fR configuration
|
|
83 |
files-\fBmodules-32.load\fR and \fBmodules-64.load\fR which
|
|
84 |
contain \fBLoadModule\fR directives for loading the 32 and 64-bit
|
|
85 |
bundled Apache 2 modules respectively.
|
|
86 |
.RE
|
|
87 |
|
|
88 |
.sp
|
|
89 |
.ne 2
|
|
90 |
.mk
|
|
91 |
.na
|
|
92 |
\fB\fB/etc/apache2/[version]/envvars\fR\fR
|
|
93 |
.ad
|
|
94 |
.sp .6
|
|
95 |
.RS 4n
|
|
96 |
File for specifying the environment settings which the server uses at
|
|
97 |
startup. This is the user-editable version of the
|
|
98 |
/usr/apache2/[version]/bin/envvars file.
|
|
99 |
.RE
|
|
100 |
|
|
101 |
.sp
|
|
102 |
.ne 2
|
|
103 |
.mk
|
|
104 |
.na
|
|
105 |
\fB\fB/etc/apache2/[version]/magic\fR\fR
|
|
106 |
.ad
|
|
107 |
.sp .6
|
|
108 |
.RS 4n
|
|
109 |
Magic data for \fBmod_mime_magic\fR Apache module as documented in the
|
|
110 |
.nf
|
|
111 |
\fB/usr/apache2/2.2/manual/mod/mod_mime_magic.html\fR file.
|
|
112 |
.fi
|
|
113 |
.nf
|
|
114 |
Editing this file is not recommended.
|
|
115 |
.fi
|
|
116 |
.RE
|
|
117 |
|
|
118 |
.sp
|
|
119 |
.ne 2
|
|
120 |
.mk
|
|
121 |
.na
|
|
122 |
\fB\fB/etc/apache2/[version]/mime.types\fR\fR
|
|
123 |
.ad
|
|
124 |
.sp .6
|
|
125 |
.RS 4n
|
|
126 |
Default MIME types file. This file sets the default list of
|
|
127 |
mappings from filename extensions to content types, changing this file is
|
|
128 |
not recommended. Use the \fBAddType\fR directive instead.
|
|
129 |
.RE
|
|
130 |
|
|
131 |
.sp
|
|
132 |
.ne 2
|
|
133 |
.mk
|
|
134 |
.na
|
|
135 |
\fB\fB/etc/apache2/[version]/original/\fR\fR
|
|
136 |
.ad
|
|
137 |
.sp .6
|
|
138 |
.RS 4n
|
|
139 |
Contents under this directory are delivered as-is from the
|
|
140 |
apache distribution and these files are not meant to be read by the server.
|
|
141 |
.RE
|
|
142 |
|
|
143 |
.sp
|
|
144 |
.ne 2
|
|
145 |
.mk
|
|
146 |
.na
|
|
147 |
\fB\fB/etc/apache2/[version]/sample-conf.d/\fR\fR
|
|
148 |
.ad
|
|
149 |
.sp .6
|
|
150 |
.RS 4n
|
|
151 |
Contains sample \fB\&.conf\fR files. These are
|
|
152 |
not included in the main configuration file. To use the sample file, copy
|
|
153 |
the file to \fBconf.d\fR directory and modify as per the need.
|
|
154 |
.RE
|
|
155 |
|
|
156 |
.sp
|
|
157 |
.ne 2
|
|
158 |
.mk
|
|
159 |
.na
|
|
160 |
\fB\fB/usr/apache2/[version]/bin/\fR\fR
|
|
161 |
.ad
|
|
162 |
.sp .6
|
|
163 |
.RS 4n
|
|
164 |
Contains the 32-bit httpd (Prefork MPM) and httpd.worker (Worker
|
|
165 |
MPM) executable as well as other utility programs.
|
|
166 |
.RE
|
|
167 |
|
|
168 |
.sp
|
|
169 |
.ne 2
|
|
170 |
.mk
|
|
171 |
.na
|
|
172 |
\fB\fB/usr/apache2/[version]/bin/[isainfo]/\fR\fR
|
|
173 |
.ad
|
|
174 |
.sp .6
|
|
175 |
.RS 4n
|
|
176 |
Contains the 64-bit httpd (Prefork MPM) and httpd.worker (Worker
|
|
177 |
MPM) executables as well as other utility programs.
|
|
178 |
.RE
|
|
179 |
|
|
180 |
.sp
|
|
181 |
.ne 2
|
|
182 |
.mk
|
|
183 |
.na
|
|
184 |
\fB\fB/usr/apache2/[version]/bin/envvars\fR\fR
|
|
185 |
\fB\fB/usr/apache2/[version]/bin/[isainfo]/envvars\fR\fR
|
|
186 |
.ad
|
|
187 |
.sp .6
|
|
188 |
.RS 4n
|
|
189 |
Contains the default environment settings that the server uses at startup.
|
|
190 |
.nf
|
|
191 |
Editing this file is not recommended.
|
|
192 |
.fi
|
|
193 |
Instead, user should use /etc/apache2/[version]/envvars file.
|
|
194 |
.RE
|
|
195 |
|
|
196 |
.sp
|
|
197 |
.ne 2
|
|
198 |
.mk
|
|
199 |
.na
|
|
200 |
\fB\fB/usr/apache2/[version]/manual/\fR\fR
|
|
201 |
.ad
|
|
202 |
.sp .6
|
|
203 |
.RS 4n
|
|
204 |
Contains the Apache 2 manual in HTML format.
|
|
205 |
.RE
|
|
206 |
|
|
207 |
.sp
|
|
208 |
.ne 2
|
|
209 |
.mk
|
|
210 |
.na
|
|
211 |
\fB\fB/usr/apache2/[version]/include/\fR\fR
|
|
212 |
.ad
|
|
213 |
.sp .6
|
|
214 |
.RS 4n
|
|
215 |
Contains the Apache 2 header files, which are needed for building
|
|
216 |
various optional server extensions with \fBapxs(8)\fR.
|
|
217 |
.RE
|
|
218 |
|
|
219 |
.sp
|
|
220 |
.ne 2
|
|
221 |
.mk
|
|
222 |
.na
|
|
223 |
\fB\fB/usr/apache2/[version]/libexec/\fR\fR
|
|
224 |
.ad
|
|
225 |
.sp .6
|
|
226 |
.RS 4n
|
|
227 |
Contains 32-bit loadable modules (DSOs) supplied with the
|
|
228 |
server.
|
|
229 |
.RE
|
|
230 |
|
|
231 |
.sp
|
|
232 |
.ne 2
|
|
233 |
.mk
|
|
234 |
.na
|
|
235 |
\fB\fB/usr/apache2/[version]/libexec/[isainfo]/\fR\fR
|
|
236 |
.ad
|
|
237 |
.sp .6
|
|
238 |
.RS 4n
|
|
239 |
Contains 64-bit loadable modules (DSOs) supplied with the
|
|
240 |
server.
|
|
241 |
.RE
|
|
242 |
|
|
243 |
.sp
|
|
244 |
.ne 2
|
|
245 |
.mk
|
|
246 |
.na
|
|
247 |
\fB\fB/usr/apache2/[version]/man/\fR\fR
|
|
248 |
.ad
|
|
249 |
.sp .6
|
|
250 |
.RS 4n
|
|
251 |
Contains man pages for the server, utility programs, and \fBmod_perl\fR.
|
|
252 |
.sp
|
|
253 |
Add this directory to your MANPATH to read the Apache 2 man pages. See
|
|
254 |
Notes.
|
|
255 |
.RE
|
|
256 |
|
|
257 |
.sp
|
|
258 |
.ne 2
|
|
259 |
.mk
|
|
260 |
.na
|
|
261 |
\fB\fB/usr/apache2/[version]/lib/\fR\fR
|
|
262 |
.ad
|
|
263 |
.sp .6
|
|
264 |
.RS 4n
|
|
265 |
Contains the 32-bit Apache 2 core libraries.
|
|
266 |
.RE
|
|
267 |
|
|
268 |
.sp
|
|
269 |
.ne 2
|
|
270 |
.mk
|
|
271 |
.na
|
|
272 |
\fB\fB/usr/apache2/[version]/lib/[isainfo]/\fR\fR
|
|
273 |
.ad
|
|
274 |
.sp .6
|
|
275 |
.RS 4n
|
|
276 |
Contains the 64-bit Apache 2 core libraries.
|
|
277 |
.RE
|
|
278 |
|
|
279 |
.sp
|
|
280 |
.ne 2
|
|
281 |
.mk
|
|
282 |
.na
|
|
283 |
\fB\fB/usr/apache2/[version]/lib/perl/\fR\fR
|
|
284 |
.ad
|
|
285 |
.sp .6
|
|
286 |
.RS 4n
|
|
287 |
Contains the 32-bit modules and library files used by the \fBmod_perl\fR extension to Apache 2.
|
|
288 |
.RE
|
|
289 |
|
|
290 |
.sp
|
|
291 |
.ne 2
|
|
292 |
.mk
|
|
293 |
.na
|
|
294 |
\fB\fB/var/apache2/[version]/cgi-bin/\fR\fR
|
|
295 |
.ad
|
|
296 |
.sp .6
|
|
297 |
.RS 4n
|
|
298 |
Default location for the CGI scripts.
|
|
299 |
.sp
|
|
300 |
This can be changed by altering the \fBhttpd.conf\fR file
|
|
301 |
and restarting the server.
|
|
302 |
.RE
|
|
303 |
|
|
304 |
.sp
|
|
305 |
.ne 2
|
|
306 |
.mk
|
|
307 |
.na
|
|
308 |
\fB\fB/var/apache2/[version]/htdocs/\fR\fR
|
|
309 |
.ad
|
|
310 |
.sp .6
|
|
311 |
.RS 4n
|
|
312 |
Default document root.
|
|
313 |
.sp
|
|
314 |
This can be changed by altering the \fBhttpd.conf\fR file
|
|
315 |
and restarting the server.
|
|
316 |
.RE
|
|
317 |
|
|
318 |
.sp
|
|
319 |
.ne 2
|
|
320 |
.mk
|
|
321 |
.na
|
|
322 |
\fB\fB/var/apache2/[version]/icons/\fR\fR
|
|
323 |
.ad
|
|
324 |
.sp .6
|
|
325 |
.RS 4n
|
|
326 |
Icons used by the server.
|
|
327 |
.sp
|
|
328 |
This should not be changed.
|
|
329 |
.RE
|
|
330 |
|
|
331 |
.sp
|
|
332 |
.ne 2
|
|
333 |
.mk
|
|
334 |
.na
|
|
335 |
\fB\fB/var/apache2/[version]/libexec/\fR\fR
|
|
336 |
.ad
|
|
337 |
.sp .6
|
|
338 |
.RS 4n
|
|
339 |
Place holder for 32-bit user Apache 2 modules.
|
|
340 |
.sp
|
|
341 |
Any 32-bit modules which are added using \fBapxs(8)\fR are
|
|
342 |
copied into this directory.
|
|
343 |
.RE
|
|
344 |
|
|
345 |
.sp
|
|
346 |
.ne 2
|
|
347 |
.mk
|
|
348 |
.na
|
|
349 |
\fB\fB/var/apache2/[version]/libexec/[isainfo]/\fR\fR
|
|
350 |
.ad
|
|
351 |
.sp .6
|
|
352 |
.RS 4n
|
|
353 |
Place holder for 64-bit user Apache 2 modules.
|
|
354 |
.sp
|
|
355 |
Any 64-bit modules which are added using \fBapxs(8)\fR are
|
|
356 |
copied into this directory.
|
|
357 |
.RE
|
|
358 |
|
|
359 |
.sp
|
|
360 |
.ne 2
|
|
361 |
.mk
|
|
362 |
.na
|
|
363 |
\fB\fB/var/apache2/[version]/logs/\fR\fR
|
|
364 |
.ad
|
|
365 |
.sp .6
|
|
366 |
.RS 4n
|
|
367 |
Contains server log files.
|
|
368 |
.sp
|
|
369 |
The formats, names, and locations of the files in this directory can
|
|
370 |
be altered by various configuration directives in the \fBhttpd.conf\fR file.
|
|
371 |
.RE
|
|
372 |
|
|
373 |
.sp
|
|
374 |
.ne 2
|
|
375 |
.mk
|
|
376 |
.na
|
|
377 |
\fB\fB/var/apache2/[version]/proxy/\fR\fR
|
|
378 |
.ad
|
|
379 |
.sp .6
|
|
380 |
.RS 4n
|
|
381 |
Directory used to cache pages if the caching feature of \fBmod_proxy\fR is enabled in the \fBhttpd.conf\fR file.
|
|
382 |
.sp
|
|
383 |
The location of the cache can also be changed by changing the proxy
|
|
384 |
configuration in the \fBhttpd.conf\fR file.
|
|
385 |
.RE
|
|
386 |
|
|
387 |
.SH ATTRIBUTES
|
|
388 |
.sp
|
|
389 |
.LP
|
|
390 |
See attributes(5) for descriptions of the following attributes:
|
|
391 |
.sp
|
|
392 |
|
|
393 |
.sp
|
|
394 |
.TS
|
|
395 |
tab() box;
|
|
396 |
cw(2.75i) |cw(2.75i)
|
|
397 |
lw(2.75i) |lw(2.75i)
|
|
398 |
.
|
|
399 |
AttributeAttribute Value
|
|
400 |
_
|
|
401 |
AvailabilityT{
|
|
402 |
.nf
|
11
|
403 |
web/server/apache-22
|
|
404 |
web/server/apache-22/documentation
|
0
|
405 |
.fi
|
|
406 |
T}
|
|
407 |
_
|
|
408 |
Interface StabilityUncommitted
|
|
409 |
.TE
|
|
410 |
|
|
411 |
.SH SEE ALSO
|
|
412 |
.sp
|
|
413 |
.LP
|
|
414 |
\fBattributes(5)\fR, \fBhttpd(8)\fR, apachectl(8)
|
|
415 |
.sp
|
|
416 |
.LP
|
|
417 |
http://www.apache.org
|
|
418 |
.SH NOTES
|
|
419 |
.sp
|
|
420 |
.LP
|
|
421 |
In addition to the documentation and man pages included with Solaris,
|
|
422 |
more information is available at http://www.apache.org\&.
|
|
423 |
.sp
|
|
424 |
.LP
|
|
425 |
Source for Apache 2 is available on http://opensolaris.org\&.
|
|
426 |
.sp
|
|
427 |
.LP
|
|
428 |
The Apache 2 man pages are provided with the programming modules. To
|
|
429 |
view the manual pages for the Apache 2 modules with the man command, add \fB/usr/apache2/[version]/man\fR to the MANPATH environment variable.
|
|
430 |
See \fBman(1)\fR for more information. Running \fBcatman(1M)\fR on
|
|
431 |
the Apache 2 manual pages is not supported.
|