This article references this article
Http://macdevcenter.com/mac/2001/12/07/apache.html
Summary:
- Most people may not notice that Mac OS X is actually built into the Apache server and can easily start Web Services.
- Apple "encapsulates" Apache. Generally, there is no direct configuration on the user interface.
- This article describes how to use Apache to start Web Services in Mac OS X.
Apache installation location
- Mac OS X is built on FreeBSD and has full compatibility with Unix. Its primary hard disk (called Macintosh HD by default) is the Unix "/" root directory, while the/bin,/etc,/home and other directories are hidden in Mac OS X, only the shell can be viewed, and the user interface does not have the "show hidden files" function in windows.
- Install Apache in the/etc/apache2/directory.
How to start Apache:
- System Preferences> sharing> Web Sharing
- Apache started immediately when you checked Web Sharing, but apple gave it another name: "Web Sharing". I do not know whether it is really convenient for users to understand or to do so.
- The two addresses listed above correspond to the network root directory "/users/nutcracker/sites/" prepared by Mac OS for the current user and the network root directory of Apache respectively.
The following default page is placed in the network root directory of the current user;