Apache configuration

xiaoxiao2021-03-06  52

Apache profile: httpd.conf: Contains the main profile of the control server's operation mode. Srm.conf: The default file referred to in the httpd.conf file refers to the default file that contains the server that the server can provide the client browser. Access.conf: The default file referred to in the AccessConfig instruction in the httpd.conf file contains the instructions of access rights to the control file. Mime.Type: Record the MIME format that the Apache server can identify.

HTTPD.CONF configuration:

# Environment Settings

# Set the startup method of the Apache server to run in the manner of daemon, or start with the inetd server. # The default is to run in the way of daemon (STANDALONE). Servertype Standalone

# Set the server directory to store the configuration files of the server, the directory of the log file. # Note: The directory here will not be added to the slash "/". Serverroot "/ user / local / apache"

The #apache service is started, and it saves the parent httpd process number (Process ID) in the log / httpd.pid file specified in PIDFile. # This file name can be changed with the PIDFile instruction. Pidfile logs / httpd.pid

#apache server is a multi-process program that requires some form of communication between the parent process and the sub-process, and then uses a scoreboard file, where each child has a space he has the right to write in this file. # The parent process obtains the status report by monitoring this file and makes decisions on whether you start more child processes or revoke idle processes. ScoreboardFile Logs / Apache_Status

# 下 below The two items to see the preferences of the administrator, if the administrator thinks that httpd.conf file is too long, it is not easy to find what you need. # So you can put the desired settings in SRM.CONF (it only has a few lines), then open it below. # The next two settings are open in the standard configuration, or it is not open. Remove the "#" in front of a line, enabling SRM.CONF # resourceconfig conf / srm.conf # accessconfig conf / access.conf

# The maximum wait time of the server and the client # If the client is not connected to the client 300 seconds, or the server is not transferred to the client in 300 seconds, it will automatically disconnect Timeout 300

# Set whether it supports the transmission function, the default is to support KeePalive ON

# Set the number of support for conveying. The more the number is, the more hard disk space, the better performance. # Set to 0 without limit MaxkeepaliveRequests 100

# Set the maximum wait time of the remaining time # If a user on the connection has not yet requested the request to the server after 15 seconds, he cannot use the renewal function. KeepaliveTimeout 15

# Set the number of sub-processes in the same time, in order to be safe, set to zero. MaxRequestSperChild 0

# Set the number of servers using the process. # This is based on the server's response speed, and the number will be slow. ThreadperChild 50

# Allow User Wwwgroup WWW

# Set the directory documentroot "/ usr / local / apache / htdocs" for the storage site document

# This means that there is a prior order between the default start page when browsing the web. Generally default start pages are index.html and index.htm. # If you need to set additional start pages, such as when you default.htm under Windows, you can set this place. DirectoryIndex index.htm index.html index.php index.php3 default.html index.cgi # Settings / Directory instructions. The specific description is as follows: #option: Defines that can perform operations in the directory #none represents only browsing. #FOLLOWSYMLINKS Allows page to connect to others, # execcgi allows you to perform CGI, # multiviews allows you to watch an action or listen to music, # indexes Allows the server to return a list of formatted lists, # includees Allows the use of SSI. # These settings can be checked. All can do anything, but do not include MultiViews. # Alllowoverride: # 加 加 参 参 indicates that anyone can browse the files in this directory, but do not read the file. #Fileinfo Allows the use of the file type instruction, # authconfig Allows the use of the instructions, # indexes allows the use of the directory index instruction, # limit Allows the use of the host instruction, # Options Allows control specific directory feature instructions use. # Set to all, the server will allow all instructions. #Order is used to set anyone to get control from this server. There are two parameters: allow and deny

Options Followsymlinksallowoverride Noneorder Allow, Denyallow from ALL

# Define the name of each directory access control file accessFileName .htaccess

# Define the Proxy Server Do not cache the page. By default. #Cachenegotiatedddocs

# This command sets the location where the MIME type configuration file is located, the # file name is relative to ServerRoot, not recommended to change this file. TypesConfig conf / mime.types

# The server will record the error to a record file, and the file name can be instructions by the ERRORLOG. # You can set different error records for different virtual hosts. ErrorLog logs / error.log

# Set the format of the record file logformat "% h% L% u% T /"% r / "> s% b" CommON

#Alias ​​instructions Make the file in the local file system other than DocumentRoot. #Scriptalias instructions are the same as the Alias ​​directive, but it also marks the changed directory contains the CGI or PHP instruction file #addType instructions to end the name of the file as the file name The suffix of files alias / icons / "/ usr / loca / apache / icons /" scriptalias / cgi-bin / "/ usr / local / apache / cgi-bin /"

# Addicon, addiconbyencoding and addiconByType are used to set the icon lists used by different file types; # For each listed file type, display the first match icon. AddiconBytype (VID, / ICONS / MOVIE.GIF) VIDEO / * Addicon /icons/binary.gif .bin .exe

# 市 文件 图 标 d d d / / /

转载请注明原文地址:https://www.9cbs.com/read-116701.html

New Post(0)