Home >Backend Development >PHP Tutorial >About APACHE's configuration file httpd.conf [transfer] (1)_PHP tutorial

About APACHE's configuration file httpd.conf [transfer] (1)_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:11:59805browse

Apache server configuration guide
Recommended: bamboo Publication date: January 9, 2001 Number of reads: 1949
The Apache server settings file is located in the /usr/local/apache/conf/ directory. Traditionally, three are used Configuration files httpd.conf, access.conf and srm.conf to configure the behavior of the Apache server.
httpd.conf provides the most basic server configuration and is a technical description of how the daemon httpd runs; srm.conf is the server's resource mapping file, telling the server the MIME types of various files and how to support these files; access.conf is used to configure the access rights of the server and control the access restrictions of different users and computers; these three configuration files control all aspects of the server's characteristics, so in order to run the server normally, these three files need to be set up.
In addition to these three settings files, Apache also uses the mime.types file to identify the MIME types corresponding to different files
. The magic file sets some special identifiers for different MIME type files, allowing the Apache server to change the document suffix from When the MIME type of the file cannot be determined, the MIME type of the document can be determined through these special marks in the file content.
bash-2.02$ ls -l /usr/local/apache/conf
total 100
-rw-r--r-- 1 root wheel 348 Apr 16 16:01 access.conf
-rw-r--r-- 1 root wheel 348 Feb 13 13:33 access.conf.default
-rw-r--r-- 1 root wheel 30331 May 26 08:55 httpd.conf
-rw-r--r-- 1 root wheel 29953 Feb 13 13:33 httpd.conf.default
-rw-r--r-- 1 root wheel 12441 Apr 19 15:42 magic
-rw -r--r-- 1 root wheel 12441 Feb 13 13:33 magic.default
-rw-r--r-- 1 root wheel 7334 Feb 13 13:33 mime.types
-rw-r --r-- 1 root wheel 383 May 13 17:01 srm.conf
-rw-r--r-- 1 root wheel 357 Feb 13 13:33 srm.conf.default
 In fact, the current version Apache puts all the configuration parameters in the original httpd.conf, srm.conf and access.conf into a configuration file httpd.conf, just for the sake of compatibility with previous versions (the way of using these three setting files Derived from NCSA-httpd), only three configuration files are used. There are no specific settings in the access.conf and srm.conf files provided.
Since in the new version of Apache, all settings are placed in httpd.conf, so you only need to adjust the settings in this file. The following uses the default httpd.conf as an example to explain the various setting options of the Apache server. However, don’t worry because it provides too many parameters to set. Basically, these
parameters are very clear, and you can run the Apache server without modification. But if you need to adjust the Apache service

http://www.bkjia.com/PHPjc/629529.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629529.htmlTechArticleApache server configuration guide recommended: bamboo Publication date: January 9, 2001 Number of reads: 1949 Apache server The settings file is located in the /usr/local/apache/conf/ directory. Traditionally, three...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn