Apache HTTP Server Version 2.0
On Windows, Apache is normally run as a service on Windows NT, or as a console application on Windows 95. For details, see running Apache for Windows.
On Unix, the httpd program
is run as a daemon that executes continuously in the
background to handle requests. This document describes how
to invoke httpd
.
If the Listen
specified in the configuration file is default of 80 (or any other
port below 1024), then it is necessary to have root privileges in
order to start apache, so that it can bind to this privileged
port. Once the server has started and performed a few preliminary
activities such as opening its log files, it will launch several
child processes which do the work of listening for and
answering requests from clients. The main httpd
process continues to run as the root user, but the child processes
run as a less privileged user. This is controlled by the selected
Multi-Processing Module.
The first thing that httpd
does when it is
invoked is to locate and read the configuration file
httpd.conf
. The location of this file is set at
compile-time, but it is possible to specify its location at run
time using the -f
cHTTP/1.1 200 OK
Date: Mon, 07 Jul 2025 05:20:57 GMT
Server: Apache/2.0.42 (Win32) PHP/5.2.10
Content-Location: invoking.html.en
Vary: negotiate,accept-language,accept-charset
TCN: choice
Accept-Ranges: bytes
Content-Length: 7557
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en
Apache HTTP Server Version 2.0
On Windows, Apache is normally run as a service on Windows NT, or as a console application on Windows 95. For details, see running Apache for Windows.
On Unix, the httpd program
is run as a daemon that executes continuously in the
background to handle requests. This document describes how
to invoke httpd
.
If the Listen
specified in the configuration file is default of 80 (or any other
port below 1024), then it is necessary to have root privileges in
order to start apache, so that it can bind to this privileged
port. Once the server has started and performed a few preliminary
activities such as opening its log files, it will launch several
child processes which do the work of listening for and
answering requests from clients. The main httpd
process continues to run as the root user, but the child processes
run as a less privileged user. This is controlled