• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

13.4. Web Services

Mac OS X comes with Apache, an open source web server responsible for more than half of all the Internet's web sites.[1] At its most basic level, Apache runs as a daemon named httpd that supports HTTP, the Hypertext Transfer Protocol, listening to web surfers' requests (on port 80, by default) and replying with response codes and web pages.

[1] Netcraft tracks the changing popularity levels of Apache and other web servers on its web site at http://www.netcraft.com/survey/

13.4.1. Apache Configuration

Apache's configuration information lies in the /etc/httpd directory, mainly in the file /etc/httpd/httpd.conf. This file sets up options through lists of directives and values, often mapped to filesystem directories and other criteria. Many of its options are highly specific to Mac OS X, so that Apache works "out of the box"; turning on web services with a single click in the Sharing pane (see Section 13.2.1) launches a full-featured web server on a fresh Mac OS X installation. Here are some highlights (and variances from the defaults you'd see in a platform-independent Apache installation):


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint