Apache for Mac

Source: Internet
Author: User

The system hides the Apache installation directory by default, but we can find it by "command line" or "Folder Go". It is installed in the system's private directory, that is, under/PRIVATE/ETC, because it is hidden, so we can not find it through the interface.

Open/etc

Note: The/ect directory is where the Mac OS system stores system configuration information, all of which are xxx.conf configuration files.


Deploying Web Resources under Apache
Unlike Windows, its deployment package is not placed in Htdocs (the directory under Windows), but in "/Repository/webserver/documents/", where static resources are placed under this directory.


Modify the default deployment path
Apache2/httpd.conf
DocumentRoot, change to the address you want.


Start disabling Apache
Enable Apache:sudo Apachectl Start/restart
If you need to password, enter, if the boot fails, you can go to the Apache log, to find the cause of the error (provided that the path of the log is configured in httpd.conf)

Apache for Mac

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.