Start Mac OS X's built-in Apache server

Source: Internet
Author: User

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:
  1. System Preferences> sharing> Web Sharing





  2. 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.



  3. 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;
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.