,QVWDOODWLRQ DQG &RQILJXUDWLRQ *XLGH IRU /LQX[ DQG $SDFKH :HE 6HUYHU RQ &RPSDT 3URVLJQLD DQG 3UR/LDQW 6HUYHUV
48
ECG513/0399
Apache Server Overview
The Apache web server has been well documented by the Apache Server Project and the various
distribution vendors. In addition, several other sites within the Linux community have provided
additional insights into the operations and management of the Apache web server. The man pages
for httpd are also helpful. This guide is not intended to improve upon the information already
publicly available.
This section provides a brief overview of the Apache web server with summary information for
the various distributions, along with links to the various sites that document the Apache server
more thoroughly.
Each of the three Linux distributions discussed in this guide includes the Apache web server and
in every case, the three basic configuration files control how the server runs. In each of these
cases, the description is quoted from the comments included in their respective files for a Red Hat
distribution:
x
httpd.conf – general server-wide configuration
x
srm.conf – sets up the user name-space parameters and also how the requests are serviced and
responses formatted
x
access.conf – sets up what type of services are allowed and under what circumstances
Although every distribution includes the Apache web server, each distribution sets it up in a
different location. Table 8 documents the location of the default storage configuration and the
content files for each distribution.
Table 10. Default Locations for HTTPD Configuration and Log Files
Distribution
Default
Configuration
File Location
Default Log File
Location
Default Static
Content Location
Default
Dynamic (CGI)
Content
Location
Caldera Systems
OpenLinux 1.3
/etc/httpd/apache/
conf
/var/log/httpd/apache
/home/httpd/html
/home/httpd/cgi
-bin
Red Hat Linux 5.2
/etc/httpd/conf
/var/log/httpd
/home/httpd/html
/home/httpd/cgi
-bin
SuSE Linux 5.3
and 6.0
/etc/httpd
/var/log
/usr/local/httpd/htdocs
/usr/local/httpd/
cgi-bin