Specifications

212 Chapter 13 Configuring and Managing Web Technologies
Apache 2.0 files are in the /etc/apache2/ folder.
The main configuration file for the Apache web server is /etc/httpd/httpd.conf.
The Apache web server (httpd) reads this file during startup. In addition, Mac OS X
Server maintains a configuration file for each website it hosts. Mac OS X Server stores
the website-specific configuration files in the /etc/httpd/sites/ folder.
To change settings that aren’t in Server Admin, such as the maximum number of
requests that an
httpd child can process before it dies, edit the httpd.conf file. Each
section of the httpd.conf file contains instructions for how to safely edit its options.
Important: To avoid misconfiguring Web service, do not modify the httpd.conf file
manually when the Web Settings pane of Server Admin is open. For more information
about Apache, see www.apache.org.
Managing Web Service
The following sections describe basic Apache Web service functions.
Starting and Stopping Web Service
To start Web service:
$ sudo serveradmin start web
To stop Web service:
$ sudo serveradmin stop web
Checking Web Service Status
To see if Web service is running:
$ sudo serveradmin status web
To see complete Web service status:
$ sudo serveradmin fullstatus web
Viewing Web Settings
To view your servers Web service configuration, use serveradmin. However, to work
with the Web service from the command line, you’ll probably find it more
straightforward to work directly with the underlying Apache web server.
To view a setting:
$ sudo serveradmin settings web:
setting
Log files /var/log/httpd/
Loadable modules /usr/libexec/httpd/
Files Location