2 .\" Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
3 .TH apache24 1M "Mar 1, 2019" "SunOS 5.11" "System Administration Commands"
5 apache24 \- Apache HTTP Server Version 2.4 overview
15 Apache HTTP Server Version 2 (Apache 2) consists of a main server daemon,
16 loadable server modules, some additional support utilities, configuration
17 files, and documentation.
20 Note Apache 2.4 is 64-bit only.
22 Apache 2.4 can be enabled by authorized user within the service
23 management facility (SMF), using the following fault management
24 resource identifier (FMRI):
28 svc:/network/http:apache24
32 Available SMF properties are listed in the following table:
36 cw(2.750000i)| cw(2.750000i)
37 lw(2.750000i)| lw(2.750000i).
38 SMF Property Name Value
39 httpd/MPM event (default), prefork or worker
40 httpd/startup_options valid apachectl options
45 The following files specify the installation locations for Apache 2:
52 The string \fB[version]\fR should be expanded
53 to \fB"MAJOR.MINOR"\fR. For example, \fB/usr/apache2/2.4/*\fR.
59 To find the current version of Apache 2 installed on your
60 machine, type the following command:
64 $ /usr/apache2/[version]/bin/apachectl -v
75 \fB\fB/etc/apache2/[version]/\fR\fR
79 Contains server configuration files. A newly-installed server
80 contains a default \fBhttpd.conf\fR file. This is the main configuration file.
82 If there is need to use different main configuration file (e.g. to run
83 multiple Apache 2 instances), it's possible by providing Apache '-f'
84 option via SMF property httpd/startup_options.
91 \fB\fB/etc/apache2/[version]/conf.d/\fR\fR
95 Contains additional server configuration files.
97 By default, server will load all the \fB\&.conf\fR files
98 placed under this directory.
105 \fB\fB/etc/apache2/[version]/envvars\fR\fR
109 File for specifying the environment settings which the server uses at
110 startup. This is the user-editable version of the
111 /usr/apache2/[version]/bin/envvars file.
113 Note that this is default path to envvars file only in case where main
114 configuration file is in directory /etc/apache2/[version]/. If this
115 is not the case Apache 2 will look for envvars file in the same
116 directory where is main configuration file.
123 \fB\fB/etc/apache2/[version]/magic\fR\fR
127 Magic data for \fBmod_mime_magic\fR Apache module as documented in the
129 \fB/usr/apache2/2.4/manual/mod/mod_mime_magic.html\fR file.
132 Editing this file is not recommended.
140 \fB\fB/etc/apache2/[version]/mime.types\fR\fR
144 Default MIME types file. This file sets the default list of
145 mappings from filename extensions to content types, changing this file is
146 not recommended. Use the \fBAddType\fR directive instead.
153 \fB\fB/etc/apache2/[version]/original/\fR\fR
157 Contents under this directory are delivered as-is from the
158 apache distribution and these files are not meant to be read by the server.
165 \fB\fB/etc/apache2/[version]/sample-conf.d/\fR\fR
169 Contains sample \fB\&.conf\fR files. These are
170 not included in the main configuration file. To use the sample file, copy
171 the file to \fBconf.d\fR directory and modify as per the need.
178 \fB\fB/usr/apache2/[version]/bin/\fR\fR
182 Contains the main httpd executable as well as other utility programs.
189 \fB\fB/usr/apache2/[version]/bin/envvars\fR\fR
193 Contains the default environment settings that the server uses at startup.
195 Editing this file is not recommended.
197 Instead, user should use /etc/apache2/[version]/envvars file.
204 \fB\fB/usr/apache2/[version]/manual/\fR\fR
208 Contains the Apache 2 manual in HTML format.
215 \fB\fB/usr/apache2/[version]/include/\fR\fR
219 Contains the Apache 2 header files, which are needed for building
220 various optional server extensions with \fBapxs(8)\fR.
227 \fB\fB/usr/apache2/[version]/libexec/\fR\fR
231 Contains loadable modules (DSOs) supplied with the server.
238 \fB\fB/usr/apache2/[version]/man/\fR\fR
242 Contains man pages for the server, utility programs, and \fBmod_perl\fR.
244 Add this directory to your MANPATH to read the Apache 2 man pages. See
252 \fB\fB/var/apache2/[version]/cgi-bin/\fR\fR
256 Default location for the CGI scripts.
258 This can be changed by altering the \fBhttpd.conf\fR file
259 and restarting the server.
266 \fB\fB/var/apache2/[version]/htdocs/\fR\fR
270 Default document root.
272 This can be changed by altering the \fBhttpd.conf\fR file
273 and restarting the server.
280 \fB\fB/var/apache2/[version]/icons/\fR\fR
284 Icons used by the server.
286 This should not be changed.
293 \fB\fB/var/apache2/[version]/libexec/\fR\fR
297 Place holder for user Apache 2 modules.
299 Any modules which are added using \fBapxs(8)\fR are
300 copied into this directory.
307 \fB\fB/var/apache2/[version]/logs/\fR\fR
311 Contains server log files.
313 The formats, names, and locations of the files in this directory can
314 be altered by various configuration directives in the \fBhttpd.conf\fR file.
321 \fB\fB/var/apache2/[version]/proxy/\fR\fR
325 Directory used to cache pages if the caching feature of \fBmod_proxy\fR is enabled in the \fBhttpd.conf\fR file.
327 The location of the cache can also be changed by changing the proxy
328 configuration in the \fBhttpd.conf\fR file.
333 \fBExample 1 \fRTo switch to worker MPM type
338 # \fBsvccfg -s apache24 setprop httpd/MPM=worker\fR
339 # \fBsvcadm refresh apache24\fR
340 # \fBsvcadm restart apache24\fR
346 \fBExample 2 \fRCreate new SMF apache instance
349 This expects that valid configuration exists in
350 /var/myapache/httpd.conf and it has altered all relevant directives
351 against default apache instance (e.g. PidFile, Listen, DocumentRoot,
352 ErrorLog and CustomLog).
356 # \fBcp /lib/svc/manifest/network/http-apache24.xml my-apache24.xml\fR
358 Edit my-apache24.xml and rename instance name to my-apache24.
360 # \fBsvccfg import my-apache24.xml\fR
361 # \fBsvccfg -s my-apache24 setprop httpd/startup_options=\\("-f" "/var/myapache/httpd.conf"\\)\fR
362 # \fBsvcadm refresh my-apache24\fR
370 \fBattributes(5)\fR, \fBhttpd(8)\fR, apachectl(8)
373 http://www.apache.org
377 In addition to the documentation and man pages included with Solaris,
378 more information is available at http://www.apache.org\&.
381 The Apache 2 man pages are provided with the programming modules. To
382 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.
383 See \fBman(1)\fR for more information. Running \fBcatman(1M)\fR on
384 the Apache 2 manual pages is not supported.