Translated Apache2 Profile - Httpd.conf

xiaoxiao2021-03-06  90

## The configuration file based on the NCSA service. ## This is the primary configuration file of the Apache server. # It contains the configuration instruction of the server's impact server. # See

To achieve more information about these instructions ## Don't just read these instruction information without understanding it. # This is just a simple explanation, if you don't have a reference online file, you will be warned. #

# These configuration instructions are divided into the following three parts: # 1. Control the part of the entire Apache server behavior (ie global environment variable) # 2. Define instructions for the primary or default service parameters, and provide default setting parameters for all virtual hosts. # 3. Setting parameters ## Configuration and Log File Name: If the file name you specify is "/" (Win32 "Dir: /"), the # server will use the absolute path, if the file name is not "/" Begins, then it will attach the value of ServerRoot # in front of the file name, for example, for "logs / foo.log", if ServerRoot value # is "/ usr / local / apache2", then this file Should be "/usr/local/apache2/logs/foo.log "### first zone: Global Environment Parameters ## The parameters set here will affect the behavior of the entire Apache server; #, for example, Apache can process the quantity of concurrent requests. Wait. ## serverroot: Indicates the root directory that the server saves its configuration, error, and log files. ##note! If you want to specify it as a location on NFS or other network, #, be sure to read documents related to LockFile (maybe in #

). # This will make you solve many problems. Do not add a slash at the end of the ##. #ServerRoot "/ usr / loacl / apache2"

## Serial Access Lock Will must be saved on the local disk #

#Lockfile logs / accept.lock

#SCoreboardFile: The file used to save the internal service process information. # If it is not specified (default), the scoreboard will be saved in an anonymous shared memory segment, # and it cannot be used by third-party software. # If you specify, make sure you can't use the two Apache to use the same tab file, # This note panel file must be saved on the local disk. #

#Scoreboardfile logs / apache_runtime_status

## pidfile: Record files of the server startup process number. #

Pidfile logs / httpd.pid

## Timeout: A total of time the time before receiving and sending #timeout 300

## KeePalive: Whether a solid connection is allowed (multiple requests for each connection), and the # set to "OFF" is disabled. #Keepalive on

## maxkeepaliveRequests: The maximum number of requests allowed during the stable connection, and # set to 0 indicates that there is no restriction access. #We recommend you set it to a bigger value in order to improve performance MaxkeepaliveRequests 100

## KeepaliveTimeout: The number of seconds received from the same customer on the same customer # KeePaliveTimeout 15

#### Server-pool size setting (for MPM) ##

# prefork MPM # StartServers: Startup Server Starting Process Number # minSpareServers: The Minimum of Bottled Processes # MaxSpareServers: Maximum number of spare processes 保 进 # # MaxClients: The maximum number of processes that are allowed to start with # maxRequestsperchild: A service process allows Maximum number of requests

StartServers 5

MinSpareServers 5

MaxSpareServers 10

MaxClients 150

MaxRequestperChild 0 # worker MPM # StartServers: Server starts at the number of service processes # maxclients: Allowed Maximum number of users to connect to the number # minsparethreads: Maximum Working thread number # maxSparethreads: Allowed Maximum Work Thread Number # ThreadsperChild: Each service The working thread constant in the process # maxRequestsperchild: The maximum number of requests allowed in the service process

STARTSERVERS 2

MaxClients 150

Minsparethreads 25

Maxsparethreads 75

ThreadsperChild 25

MaxRequestSperChild 0

# Perchild MPM # Numservers: The number of service processes # startthreads: The number of starting threads in each service process # minsparethreads: The minimum thread 保 保 号 号 # MaxSparethreads: The maximum number of threads that hold the maximum cell: Maximum number of threads per service process # MaxRequestSperchild: Each service process allows the maximum number of connections

Numservers 5

StartThreads 5

Minsparethreads 5

Maxsparethreads 10

MaxthreadsperChild 20

MaxRequestSperChild 0

#Winnt MPM # threadsperchild: Working thread in the service process # maxRequestSperChild: The maximum number of requests allowed by the service process

ThreadsperChild 250

MaxRequestSperChild 0

#BEOS MPM # startthreads: The number of threads started when the server starts # maxclients: The maximum number of threads that can be started (a thread is equal to one user) # maxRequestsPERTHREAD: Maximum number of requests allowed for each thread

StartThreads 10

MaxClients 50

MaxRequestsPERTHREAD 10000

# NetWare MPM # ThreadStachSize: The stack size for each working thread # startthreads: The number of threads started when the server starts # minsparethreads: The maximum number of idle threads used to handle the real request: Idle thread maximum number # Maxthreads: The maximum number of threads of the same time # maxRequestperChild: The maximum number of thread service requests, # recommended to set it to 0 to achieve unlimited access

Threadstacksize 65536

StartThreads 250

Minsparethreads 25

Maxsparethreads 250

Maxthreads 1000

MaxRequestperChild 0

# Os / 2 MPM # StartServers: Started Service Process Quantity # MINSPARETHREADS: Minimum Idle Threads Allowed for Each Process # MaxSparethreads: Maximum Idle Threads Allowed for Each Process: Each service process allows for maximum connections

STARTSERVERS 2

Minsparethreads 5

Maxsparethreads 10

MaxRequestSperChild 0

## listen: Allows you to bind the Apache service to the specified IP address and port to replace the default value # See

instruction

# Use the following command to make Apache only listen on the specified IP address,

# To prevent it from listening on IP address 0.0.0.0

#

# Listen 12.34.56.78:80

Listen 80

## Dynamic Sharing Support (DSO) # # In order to be able to use functions in modules compiled in DSO mode, you must have the corresponding "loadModule" line, and therefore, here contains these instructions so that before using it activation. # Those static compile modules do not need to list (ie, the modules listed in "httpd -l") ## example: # loadingModule foo_module modules / mod_foo.so ### extendedStatus: When calling "Server-Status" Control Apache is generating "full" state # information (ExtendedStatus ON) or produces basic information (ExtendedStatus OFF). # 认 为 o ## ExtendedStatus ON

### 第 二: "Lord" service configuration ## This area establishes the command value used by the "master" server to respond to those who are not

# Define any request for processing.

# These values ​​also provide the default value to the latter definition

container.

# in case

There is definition, then the command value defined here will be

#

The definition is covered.

#

## If you want to make HTTPD to run in another user or group, you must start in root in the start of # and then switch it to the user or group you want to use. ## user / group: Users and groups running httpd to use "User Nouser" and "Group Nogroup" on SCO (ODT3) # in HPUX, you may not be able to use shared memory as Nobody, it is recommended to create a WWW user. # Note Some cores (KERNEL) reject setgid (group) or SemctL (IPC_SET) in group ID, and do not use "Group # -1" on these systems. # User nobodygroup # -1

## serveradmin: Your email address, Apache will send you an email when a problem occurs. # As an error document, this address is displayed on the server-generated page, # for example: admin@your-domain.com#serveradmin kreny@sina.com

## servername Specifies Apache to identify its own name and port number. #Mhus, this value is automatically specified, but we recommend you explicitly specify it to prevent the error when starting. ## If you specify an invalid DNS name for your host, server-generated redirection will not work. # See UsecanonicalName Directive ## If your host is not registered with a DNS name, type it here IP address # 无, you must use its IP address to provide services, # here uses an easy to understand to redirect service servername Www.dalouis.com:80

## UsecanonicalName: Decide how Apache constructs instructions for URLS and Server_Name and Server_Port. # When set to "OFF", Apache will use the host name and port number provided by the client. # When set to "ON", Apache will use the value of the ServerName instruction. # Usecanonicalname OFF

## DocumentRoot: The root directory of your document. By default, all requests answers from this directory. # However, you can use symbolic links and alias to point to other locations. #Documentroot "/ home / redhat / public_html"

## Apache Accommodates Each directory can be configured (including its subdirectory). ## First, we configure a highly restricted feature.

# This will prohibit access to the directory where the file system is located and add the directory block you want to access. # As follows

ORDER DENY, ALLOWDENY from ALL ## Note From here you must explicitly allow which special features are allowed to be used. # - So, if Apache doesn't work as you expect, # Please check if you are specifying it available below. #

## This will change to Documentroot you set.

## options: This command can be "None", "all", or any combination of the following options: # 中 cd fermatch execcgi multiviews ## Note, "MultiViews" must be explicitly specified, "Options all" Can't provide you with this feature. ## This instruction is both complex and important, please refer to # "http://httpd.apache.org/docs-2.0/mod/core.html#optioins" to achieve more information. #Options Followsymlinks

## AllowOverride Controls those that are placed in the .htaccess file. # It can be "all", "none", or combination of the following instructions: #boptions fileinfo authconfig limited # allowoverride none

## Control Who can get a service. #Order allow, Denyallow from ALL

## Userdir: Specifies the directory name that will be added to the user home directory when you get one ~ User request. #

Userdir public_html

# To prevent vulnerabilities on the UserDir instruction, Userdir set to the root user # "./" is very useful. # If you use Apache 1.3 or above, we strongly recommend that you contain the following lines in your server profile.

Userdir disabled root

## The following is an example of read-only properties using the userdir directory to make a site of the site: ##

# Allowoverride fileinfo authconfig limited indexes

# Options MultiViews INDEXES SYMLINKSIFOWNERMATCH INCLUDENOEXEC

#

# Order allow, deny

# Allow from all

#

#

# Order deny, allow

# Deny from all

#

#

## DirectoryIndex: When the request is a directory, Apache provides the user's file name ## index.html.var file (a type image file) to provide a list of documents, # for the same purpose, You can use the MultiViews option, but it will be very slow. #Directoryindex index.php index.html index.html.var

## accessFileName: The file name of the file that provides additional configuration instructions is provided in each directory. # See Allowoverride Directive. #AccessFileName .htaccess

## The following rows prevent .htaccess and .htpasswd files are viewed by the web customer. #

ORDER ALOW, DENY

Deny from all

## TypeConfig: Where to query the mime.types file where to define. #TypeConfig conf / mime.types

## DefaultType: Definition When you cannot determine the default MIME type provided by the server when the MIME type is not determined. # If your service mainly contains text or html document, "text / plain" is a good choice; # If most is binary document, such as software or images, you should use # "Application / Octer-Stream" to prevent browsers A binary file is displayed like a text. #Defaulttype text / plain ## mod_mime_magic Allows the server to use different clues from themselves to define their types of files (HINTS), and the # this MIMEMAGICFILE directive defines the file where Hints definition is located. #

MimeMagicfile conf / magic

## HostNameLookups: Specify the name of the recorder or IP address, for example, when this directive is ON # Record the host name, such as www.apache.org; record IP address, 204.62.129.132. # The default is OFF, this is much better than the ON, because if it is set to ON, each user request will be # at least a query for Nameserver. #Hostnamelookups OFF

## enablemmap: Controls whether to make a memory dump (if the operating system is supported). # 认 为 on, if your server is installed on the network file system (NFS), turn it off. # On some systems, turn off it will increase system performance (independent of file system type); # for details, see http://httpd.apache.org/docs-2.0/mod/core.html#enablemap## Enablemap Off

## enablesendfile: Controls whether to use SendFile Kernel to send file # (if the operating system is supported). The default is ON, if your server is installed on the Network File System # (NFS), please close it. # See http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile## enablesendfile off

## irelog: Error log file positioning. # If you are not

Internal definition errorlog directive, this virtual host error message

# Will be recorded here. If you define ERRORLOG there, these error messages will be recorded in you.

# In a defined file, not the file defined here.

#

ERRORLOG logs / error_log

## loglevel: Control the number of log information recorded in the error log file. # Possible values ​​include: Debug, Info, NOTICE, WARN, Error, crit, Alert, Emerg. #Loglevel Warn

## The following instruction defines the format alias for the Customlog command. #Logformat "% h% l% u% T /"% r / "%> s% b /"% {refere} I / "/"% {user-agent} I / "" combinedLogformat "% h% l% U% T / "% r /"%> s% b "commonLogformat"% {refrer} i ->% u "referelLogformat"% {user-agent} i "Agent

# You need to install the MOD_LOGIO.C module to use% i and% o. # Logformat "% h% l% u% T /"% r / "%> s% b /"% {referer} I / "/"% {user-agent} I / "% I% o" combinedio ## Specify the positioning and format of the access log file (general log format). # If you are not

Internal definition, transfer information will be recorded here,

# If you define this instruction, record the location you specified instead of this defined location.

#

Customlog logs / Access_log Common

## If you want to record Agent and Referer information, you can use the following instruction ## Customlog logs / Referer_log Referr # Customlog logs / agent_log agent

## If you want to use a file to record Access, Agent, and Referer information, # You can define this instruction below: ## Customlog logs / access_log combined

## serverToKens # This instruction definition is included in the information type in the HTTP response header. The default is "full", # this means that the operating system type and compilation information in the module are included in the response header. # You can be set to one of the columns: #full | OS | Minor | Minimal | Major | Prod # full of information conveyed, and Ltd. #ServertoKens Full

## 随 随 加添 包 信息 信息 信息 版 g 输 输 输 输 输 错 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文. # Set to "email" will contain a MailTo pointing to ServerAdmin: connection. # Can be as required: ON | Off | Email # Serversignature ON

## aliases: Add you the alias you need, the format is as follows: # alias alias true name ## Note, if you contain "/" in the alias, then "/" in the URL. # Therefore, "/ icons" is not alias in this example. # If the alias is ended with "/", the real name must also end with "/", # If the alias is omitted "/", then the real name must also be omitted. ## We use alias "/ icons /" to represent a FancyIndexed directory list, if you don't use, # fancyIndexing, you can comment it. ## alias / icons / "/ usr / local / apache2 / icons /"

#

# Options Indexes MultiViews

# Allowoverride none

# Order allow, deny

## a f from all

#

## This will change ServerRoot / Manual. This alias provides the location where the man page is located, "even if you change your documentroot. If you don't care if you have a message page, # You can comment it. #Alias ​​/ Manual "/ usr / loacl / apache2 / manual"

Options INDEXES FOLLOWSYMLINKS MULTIVIVIEWS INCLUDESNOEXECADDOUTPUTFILTER INCLUDES HTMLORDER ALLOW, DENYALLOW FROM ALL

## Scriptalias: Specifies the directory containing the service script. # Scriptaliases is in nature, like AliaSes, except that the document here is proceed to process processing during the request. # / 规 规 规 a a s... # 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指 指Modules / libphp4.so

## Add MOD_CGID.C setting, MOD_CGID provides a # script interface path of UNIX socket using CGID. ## scriptsock logs / cgisock

## Change "/ usr / local / apache2 / cgi-bin" to your scriptaliase design specified CGI directory, # if you are configured. #

ALLOWOVERRIDE NONE

Options none

ORDER ALOW, DENY

ALLOW FROM ALL

## redirect Allows you to tell the client to use documents existing in the server name space, # instead of present, which helps customers locate documents that change the location. #, For example: # redirect permanent / foo http://www.example.com/bar

## Control Server-Generated Directory list Show command #

## indexoptions: Control Server-Generated Directory List Display Features. #Indexoptions FancyIndexing VersionSort

## addicon * instructions tell the server how to display different extensions, # only for FancyIndexed instructions #adddiconbyencoding (cmp, / icons / compressed.gif) X-compress x-gzipaddiconbype (txt, / icons / text.gif) ) text / * addiconbytype (IMG, / ICONS / Image2.gif) Image / * AddiconBytype (SND, / ICONS / SOUND2.GIF) AUDIO / * AddiconBytype (VID, / ICONS / MOVIE.GIF) VIDEO / *

Addicon /icons/binary.gif .bin .exEaddicon /icons/binhex.gif .hqxaddicon /icons/tar.gif.traddicon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .ivaddicon / icons / compressed. Gif .z .z .tgz .gz .zipaddicon /icons/a.gif.ps. sei .epsaddicon /icons/Layout.gif .html .shtml .htm .pdfaddicon /icons/text.gif .txtAddCDicon / ICons / C. Gif .caddicon /icons/p.gif .pl .pyaddicon /icons/f.gif .foraddicon /icons/dvi.gif .dviaddicon /icons/uuencoded.gif .uuaddicon /icons/script.gif .conf .sh.shar. Csh .ksh .tcladdicon /icons/tex.gif .texaddicon /icons/bomb.gif core

Addicon /icons/back.gif ..addicon /icons/hand.right.gif readmeaddicon /icons/folder.gif ^^ Directory ^^ addicon /icons/blank.gif ^^ blankicon ^^ ## defaulticon for those who are not explicit Define the file of the icon to process #defaulticon /icons/unknown.gif

## AddDescription Allows you to place a short description after server-generated index. # Only valid for the FancyIndexed command. # Format: AddDescription "Description" file name ## adddscription "gzip compressed document" .gz # addscription "tar archive" .tar # addscription "gzip compressed tar archive" .tgz

## oudMename Specifies the name of the readme file for the server default, and adds to the directory list ## Headername Specifies the file name of the directory list prefix file name readmename html

## indexignore Specifies the directory index to neglect and is not included in the list of file names in the list, and # supports wildcards for the shell type. #Indexignore. ?? * * ~ * # HEADER * README * RCS CVS *, V *, T

## addencoding allows you to use (MOSAIC / X 2.1 ) to decompress information in information transfer, # Note: Not all browsers support this option. # Although the name is similar, the following instructions are different from the FancyIndexing custom instruction above. #Addencoding x-compress zaddencoding x-gzip gz tgz

## DefaultLanguage and AddLanguage Allows you to specify the language of the document. # This allows you to browse the document in a language that is easy to understand. ## Specify the default language, which means that all packages that do not specify the language will use this language. # In most cases, you may not want to set it unless you are confident that this is correct. #Nely, the language that does not use the determined language is better than the language that is wrong. ## DefaultLanguage NL ## Note 1: As a language keyword, there is no doubt that it is not the same - the use of Poland # text (Network standard language code is PL) will want to use "AddLanguage Pl .po" to avoid General Affix with Perl scripts produces an unsurmount. ## Note 2: The following example Example illustrates the two-character abbreviations in some examples. The two-character abbreviations are different from its country #, such as "Danmark / DK" and "Danmark / Da" comparison. # # 3 : In the case of "LTZ", we use three-character affixers, violating RFC regulations, and will repair it and use the RFC1766 standard to obtain reference data. ## Danish (da) - Dutch (NL) - English (EN) - Estonian (ET) # French (fr) - German (de) - Greek-modern (EL) # italian (IT) - Norwegian (no) - Norwegian Nynorsk (NN) - Korean (KO) # Portugeese (Pt) - Luxembourgeois * (LTZ) # spanish (es) - swedish (sv) - catalan (ca) - CZECH (CZ) # Polish (PL) - Brazilian Portuguese -br) - Japanese (ja) # Russian (ru) - Croatian (hr) #AddLanguage da .dkAddLanguage nl .nlAddLanguage en .enAddLanguage et .etAddLanguage fr .frAddLanguage de .deAddLanguage he .heAddLanguage el .elAddLanguage it .itAddLanguage ja .jaAddLanguage pl .poAddLanguage ko .koAddLanguage pt .ptAddLanguage nn .nnAddLanguage no .noAddLanguage pt-br .pt-brAddLanguage ltz .ltzAddLanguage ca .caAddLanguage es .esAddLanguage sv .svAddLanguage cz .czAddLanguage ru .ruAddLanguage tw .twAddLanguage zh-tw .twAddLanguage hr. HR # LanguagePriority allows you to use some languages ​​during the session. ## lists them in prioritization. We use more or less to arrange them in the order of alphabetical order. Maybe you want to change this order. LanguagePriority EN DA NL ET fr de El It Ja Ko No Pl ​​PT PT-Br LTZ CA ES SV TW

## forcelanguagepriority Allows you to provide a result page for Multiple Choices [In communication] # or NOTBACK [unacceptable language match]. #Forcelanguagepriority prefer Fallback

## Specify the default character set for all pages sent, which is always a good idea, and opens the door for your # web site, this is not what you want. Similarly, the specified # default character set has some small damage, such as a page using ISO-8859-1 (Latin1) standard command #, unless otherwise specified, for example, you only declare it in an explicit manner. # There are also some browser security reasons for the JavaScript and URL syntax that always encourage you to use the default character set. ## adddefaultcharset ISO-8859-1ADDDEFAULTCHARSE GB2312 ## generally uses a character set in a file extension. Maybe you want to avoid extension of the language. # Collision, unless you have done a good test after each change. # See http://www.iana.org/assignments/Character-sets to obtain a list of character sets # and their respective RFCs. #Addcharset ISO-8859-1 .ISO8859-1 .latin1addcharset ISO-8859-2 .so8859-2 .latin2. Cenaddcharset ISO-8859-3 .iso8859-3 .latin3addcharset ISO-8859-4 .io8859-4 .latin4addcharset ISO- 8859-5 .so8859-5 .latin5. Cyr .iso-rubdcharset ISO-8859-6 .iso8859-6 .latin6 .arbaddcharset ISO-8859-7 .iso8859-7 .latin7 .grkaddcharset ISO-8859-8 .io8859-8 .latin8 .hebaddcharset ISO-8859-9 .ISO8859-9 .latin9 .trkaddcharset ISO-2022-JP .iso2022-jp .jisaddcharset ISO-2022-Kr .iso2022-kr .kisaddcharset ISO-2022-CN .iso2022-cn .cisaddcharset Big5 .big5 .big5 # For Russian, use multiple character sets (how to use the client): addcharset windows-1251 .cp-1251 .win-1251addcharset cp866 .cp866addcharset koi8-r .koi8-r. Koi8-ruaddcharset KOI8-RU. KOI8-UK .uaaddcharset ISO-10646-UCS-2 .ucs2addcharset ISO-10646-UCS-4 .ucs4addcharset UTF-8 .UTF8

# The following character set is not mapped to a specific standard (ISO), but they are widely supported in the browser #. Pay attention to those uppercase letters. # (It should not, but it is made to be compatible with some browsers) ## See http://www.iana.org/assianments/Character-sets to get the list of #s. But the browser supports less. #AddCharset GB2312 .gb2312 .gb AddCharset utf-7 .utf7AddCharset utf-8 .utf8AddCharset big5 .big5 .b5AddCharset EUC-TW .euc-twAddCharset EUC-JP .euc-jpAddCharset EUC-KR .euc-krAddCharset shift_jis .sjis

## addtype Allows you to add or override the MIME.TYPEPEPLICE / X-ICON .TGZADTYPE IMAGE / X-ICON.

## addhandler Allows you to map the determined file extension name to "Handlers": # and behavior that is not related to the file type. This can be compiled into the server or can be added to the Action command # (see below). # Use the CGI script outside of the ScriptaliaSed instruction: # (To make it available, you also need to add "execcgi" in Options. ## addhandler cgi-script .cgi ## For those who contain their own HTTP headers ## addhandler send-as-is asis

## For server-pased imagemap file: ## addhandler imap-file map

## Agemap file: ## addhandler imap- file image

## For type images: (Transfer Resources) # (This is the default setting to allow Apache "IT WORKED" page to distribute multiple languages). #Addhandler Type-Map Var

## Filter allows you to process it before sending it to the client. ## In order to analyze (SSI). SHTML documentation: # (To perform this instruction, you need to add "incrudes" in the Options directive.) ## addtype text / html.shtml # addOutputFilter Includes .shtml

## Action Let you define the script to be executed when the matching media file is called. This will reduce the repeated input of the URL path name that often uses the CGI script. # Format: Action Media / Type / CGI-Script / Location # Format: Action Handler-Name / CGI-Script / Location #

## Configurable error should answer three style: # 1) plain text 2) Local redirects 3) External redirects ## Some examples: # document 500 "The Server Made a Boo Boo." # Errordocument 404 / confument 404 "/ci-bin/missing_handler.pl"# errordocument 402 http://www.example.com/subscription_info.html#

## Comprehensive application of these instructions, we can create an international error response. ## We use alias to redirect any / error / http_

.html.var responded to

# Our multilingual error message collection. Replace it with the correct text.

#

# By adding the following line, you can change the display of these messages without having to change

# Http_

.html.var file.

#

# Alias ​​/ error / include / "/ inDE / path /"

#

# Copy / usr / local / apache2 / error / include / under / you / incline / path /

# Start, you can create your own file collection, even for each virtual host.

# No matter how your Serversignature is set, the default inclusion file will display you.

# AAPCHE version number and your serveradmin mail address

#

# 国化 的 错 文 文 需要 m 需要 m_ m 需要 三 三 三 三 三 三 三 三

# Module. To activate them, cancel the annotation symbols below 30 rows

# Alias ​​/ error / "/ usr / local / apache2 / error /" ##

# Allowoverride none

#Boptions includeesnoexec

# AddocuTfilter Includes HTML

# AddHandler Type-map var

# Order allow, deny

# Allow from all

# LanguagePriority EN DE ES FR IT NL SV

# Forcelanguagepriority prefer Fallback

#

## ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var# ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.varErrorDocument 403 /error.php# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var# ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var# ErrorDocument 410 /error/HTTP_GONE.html.var# ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var# ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var# ErrorDocument 413 / error / HTTP_REQUEST_ENTITY_TOO_LARGE.html.var # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var# ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var# ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var# ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var# ErrorDocument 502 / error/http_bad_gateway.html.var# errordocument 503 / error/http_service_unavailable.html.var# errordocument 506 / error/http_variant_also_varies.html.var

## The following command changes the standard HTTP response behavior to handle your knowledge of browser issues. #BrowserMatch "Mozilla / 2" nokeepaliveBrowserMatch "MSIE 4 / .0b2;" nokeepalive downgrade-1.0 force-response-1.0BrowserMatch "RealPlayer 4 / .0" force-response-1.0BrowserMatch "Java / 1 / .0" force-response -1.0BrowSermatch "JDK / 1 / .0" Force-Response-1.0

## The following command closes the redirection of non-GET requests that do not have the directory of the tail "/", # These commands Repair Microsoft's use DAV method does not correctly handle the redirected Web folder. # Apple's DAV file system and GNOME VFS support for DAV is also processed by such method #. #BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefullyBrowserMatch "^ WebDrive" redirect-carefullyBrowserMatch ". ^ WebDAVFS / 1 [012]" redirect-carefullyBrowserMatch "^ gnome-vfs" redirect-carefully ## allows you to use the URL: http : // ServerName / Server-Status to generate the server status information through MOD_STATUS. Change .Example.com is your own domain name. ##

# SetHandler Server-Status

# Order deny, allow

# Deny from all

# Allow from .example.com

#

## Allow URL: http: // servername / server-info to remotely report server configuration information # (requires mod_info.c support). Change ".example.com" for your own domain name. ##

# SetHandler Server-Info

# Order deny, allow

# Deny from all

# Allow from .example.com

#

## proxy server command, remove the following exercise agent service available. ##

# ProxyRequests on

#

# Order deny, allow

# Deny from all

# Allow from .example.com

#

## Install or close the HTTP / 1.1 "Channel" header process. # ("Full" Add Server Version Information, "Block" removes all output "channel" header information. # Can be set to one of the options: OFF | ON | FULL | Block ## proxyvia on

# It is best to install the high-speed buffer for the proxy service, remove the following lines of comments symbol: # (no cacheroot, no buffer) ## cacheroot "/ usr / local / apache2 / proxy" # Cachesize 5 # cachegcinterval 4 # cachemaxexpire 24 # CacheLastModifiedFactor 01 # cachedefaultexpire 1 # nocache a-omain.com another-domain.edu joes.garage-sale.com

# # 代理 command end.

## Additional module configuration. #

Include conf / ssl.conf

## Third District: Virtual host ## VirtualHost: You can use the virtual host container to implement multiple # domain names / hostnames on your host. Most configuration information only uses the name-based virtual host, so the server # does not have to worry about the IP address, the following command instead of the virtual host name attribute. ## Before you try to configure your virtual host, see # URL: http://httpd.apache.org/docs-2.0/vhosts/> to achieve more information. ## You can use the command line option "-s" to verify your virtual host configuration.

## Use the name-based virtual host. ## NamevirtualHost *

## Virtual host example: # Almost all Apache commands can be used in a virtual host container. # The first virtual host area is a configuration that responds to the unknown request to the service name. ## # Serveradmin webmaster@dummy-host.example.com# Document / www/docs/dummy-host.example.com# servername dummy-host.example.com # errorlog logs / dummy-host.example. com-error_log # Customlog logs / dummy-host.example.com-access_log comme # Excerpt from http://www.linuxaid.com.cn/forum/

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

New Post(0)