Linux Apache Server System setup and optimization

Source: Internet
Author: User

The Apache server settings file is located in the/usr/local/apache/conf/directory and traditionally uses three profiles httpd.conf, access.conf, and srm.conf to configure the Apache server's behavior. HTTPD.CONF provides the most basic server configuration, a technical description of how the daemon httpd run, srm.conf is the server's resource mapping file, tells the server the MIME type of various files, and how to support the files; ACCESS.CONF is used to configure access rights for the server, to control access restrictions for different users and computers, and these three profiles control all aspects of the server, so the three files need to be set up to run the server properly.

In addition to these three settings files, Apache uses the Mime.types file to identify the MIME types for different files, and magic files to set some special identities for different MIME type files so that the Apache server cannot determine the MIME type of the file from the document suffix. The MIME type of the document can be judged by these special tags in the contents of the file. [Iaspec@www conf]$ pwd/usr/local/apache/conf [iaspec@www conf]$ ls access.conf httpd.conf.OLD magic.default srm.conf acc Ess.conf.default Httpd.conf.SAVE mime.types Srm.conf.default httpd.conf Magic

The new version of Apache puts all of the configuration parameters in the original httpd.conf, srm.conf, and access.conf in one profile httpd.conf, only for reasons compatible with previous versions ( Use these three settings files in a way that originates from ncsa-httpd to use three profiles. There are no specific settings in the access.conf and srm.conf files provided.

Because in the new version of Apache, all of the settings are placed in the httpd.conf, so you just need to adjust the settings in this file. This article, based on the httpd.conf of Redhat 7.2, explains the various setup options for the Apache server and, of course, its configuration method can be extended to almost all UNIX systems.

Although Apache provides a lot of settings, basically these parameters are very clear, or you can run the Apache server without modification. However, if you need to adjust the performance of the Apache server and increase support for an attribute, you need to understand what these settings parameters mean.



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.