Apple Mac OS X Server Network Card User Manual


 
208 Chapter 13 Working with Web Technologies
Apache web server version 2.0 files are in the /opt/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 directly.
Each section of the httpd.conf file contains detailed instructions for how to safely edit
its options.
Important: Do not modify the httpd.conf file manually when the Web Settings pane of
Server Admin is open, to avoid misconfiguring your web services. For more information
about apache, see www.apache.org.
Managing the Web Service
Web service in Mac OS X Server is based on Apache, an open-source HTTP web server.
A web server responds to requests for HTML web pages stored on your site. The
following sections describe some basic 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
You can use serveradmin to view your server’s web service configuration. However, if
you want 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 list all Web service settings:
$ sudo serveradmin settings web
To list a particular setting:
$ sudo serveradmin settings web:
setting