Setup and optimization of Linux Apache server System

Source: Internet
Author: User
Tags version access linux

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

Access.conf.default Httpd.conf.SAVE mime.types Srm.conf.default

Httpd.conf Magic Mime.types.default

The new version of Apache puts all of the configuration parameters in the original httpd.conf, srm.conf, and access.conf in one configuration file In httpd.conf, three profiles are used only for reasons that are compatible with previous versions (from NCSA-HTTPD in the way that these three settings files are used). 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.



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.