Httpd.conf translation of apache2

xiaoxiao2021-03-06  45

#Profil 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 the global environment variable) # 2. Define instructions for the primary or default service parameters, and provide default settings for all virtual hosts. Parameter # 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 Start with "/", then it will attach the value of the serverroot # in front of the file name, for example, for "logs / foo.log", if ServerRoot value # is "/ usr / local / apache2", then The file should be "/usr/local/apache2/logs/foo.log "# ## 第一: Global Environment Parameters # # The parameters set here will affect the behavior of the entire Apache server; #, for example, Apache can process concurrency requests Quantity, etc. # #Serverroot: Indicates the root directory that the server saves its configuration, error, and log files. # # 注意! If you want to specify it as a location on NFS or other network, #, be sure to read the document related to LockFile (may be in # ). # This will make you solve many problems. The end of the # # 路 Do not add a slash. # ServerRoot "/ usr / loacl / apache2" # 锁 文 必须 在 必须 本号 #号 # #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: Receive and send a time time limit number # Timeout 300 # Keepalive: Whether a solid connection is allowed (multiple requests for each connection) The # is set to "OFF". # Keepalive ON # #MaxkeepaliveRequests: The maximum number of requests allowed during the stable connection, and # set to 0 means unlimited access.

# 我们 我们荐 You will set it into a bigger value in order to improve the performance MaxkeepaliveRequests 100 # KeepaliveTimeout: The number of seconds received from the same customer receives the request from the same customer # KeepaliveTimeout 15 ## ## server-pool size Ding (for MPM) ## # prefork MPM # startServers: Startup server started process number # minspareServers: The minimum number of spare processes 保 备用 # maxSpareServers: The maximum number of spare processes 保 # # mc:: 最 进 最 进 最number # MaxRequestsPerChild: maximum number of requests a server process allowed StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestPerChild 0 # worker MPM # StartServers: the server boot service process number # MaxClients: allows simultaneous Maximum number of users # minsparethreads: Maximum Working thread Number # MaxSpareThreads: Maximum Working Thread Number # threadsperchild: MaxRequestSperChild: Maximum Request Maximum Number of Requests in Services Period StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 # perchild MPM # NumServers: service process number # StartThreads: initial number of threads # MinSpareThreads each service process: to maintain the minimum number of threads # MaxSparethreads: Bottom Maximum Thread Quantity # MaxthreadSperchild: Maximum number of threads allowed by each service process # maxRequestsperchild: Each service process allows the maximum number of maximum numbers Numserv ers 5 StartThreads 5 MinSpareThreads 5 MaxSpareThreads 10 MaxThreadsPerChild 20 MaxRequestsPerChild 0 # WinNT MPM # ThreadsPerChild: constant service process worker # MaxRequestsPerChild: maximum number of requests allowed for the process services 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 by 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 # MaxRequestPerChild the same time activities: a maximum number of threads service requests, # recommended to set it to 0 to enable unrestricted access ThreadStackSize 65536 StartThreads 250 MinSpareThreads 25 MaxSpareThreads 250 MaxThreads 1000 MaxRequestPerChild 0 # os / 2 MPM # startServers: Started service process number # minsparethreads: minimum idle threads allowed for each process # maxSparethreads: Maximum idle threads allowed for each process # maxRequestSperChild: Each service process allows for maximum Connection 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 listen only on the specified IP address, # to prevent it from listening to the IP address 0.0.0.0 listening # # listen 12.34.56.78:80 listen 80 # # Dynamic Sharing Support (DSO) # ## In order to be able to use those The function in the module compiled by the DSO mode, you must have the corresponding "loadModule" line, and # there is, where these instructions are included in order to activate before using it. # The static compile module does not need to list (ie, the module 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 # ### 第 二 二: "Main" service configuration # # This area establishes the command value used by the "master" server to respond to any requests that are not handled by # . # These values ​​also provide default values ​​to the container defined later. # If there is definition in , the command value defined here will be overwritten by the definitions in # . # # # If you want to run httpd to run in another user or group, you must start with root in the start # and then switch it to you want User or group used. # # User / group: Users and groups running httpd Use "User Nouser" and "Group Nogroup" on SCO (ODT3). On 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 Nobody Group # -1 # # ServerAdmin: 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 that you explicitly specify it to prevent the error when you start the error # # If you specify an invalid DNS name for your host, the server-generated redirection will not work. # See UsecanonicalName instruction # # 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 understanding manner to redirect service servername Www.dalouis.com:80 # usecanonicalname: Decide how Apache constructs URLS and Server_Name and Server_Port instructions. # 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 Each directory can be accessed to configure access rights (including its subdirectory). # # First, we configure a high-constrained feature. # This will prohibit access to the directory where the file system is located and add the directory block you want to access. # 如下 Order Deny, Allow Deny 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 # # Options you set: This instruction can be "none", "all", or any combination of the following options: # indexes Includedes Followsymlinks SymlinksifownerMatch Execcgi MultiViews # # Note that "MultiViews" must be explicitly specified, "Options all" cannot 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 # # allowowoverride Controls the instructions that are placed in the .htaccess file.

# It can be a combination of "all", "none", or the following instructions: #boptions fileInfo authconfig limit # allowoverride none # # Who can get a service. # ORDER ALLOW, DENY Allow from all # # Userdir: Specifies the directory name after you get a home directory when you get one ~ user request. # UserDir public_html # To prevent vulnerabilities on the UserDir instruction, setting the root user settings # "./" This userdir is very useful. # If you use Apache 1.3 or above, we strongly recommend that you contain the following row UserDir Disabled root # # below is an example of read-only properties using the userdir directory to make a site of the site: # # # AllowOverride FileInfo AuthConfig Limit Indexes # Options MultiViews Indexes SymLinksIfOwnerMatch IncludeNoExec # # Order allow, deny # Allow from all # # # Order deny, allow # deny from all # xPT> # DirectoryIndex: Define Request is a directory, Apache provides a service file name # # index.html.var file (one Type Image Files) Used to provide a list of documents, # for the same purpose, but it will use the MultiViews option, but it will be very slow. # DirectoryIndex index.php index.html index.html.var # atcessFileName: The file name of the file that provides additional configuration instructions is provided for each directory. # See Allowoverride Directive. # AccessFileName .htaccess # # The row below prevents .htaccess and .htpasswd files are viewed by the web customer. # ORDER ALLOW, DENY DENY from ALL # # typeconfig: Where to query mime.types files. # TypeConfig conf / mime.types # defaultty: 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 own types, # this MIMEMAGICFILE directive defines the file where Hints defined.

# MimeMagicFile conf / magic # # hostnamelookups: Specify the name of the logo or IP address, for example, when this directive is ON # Record the host name, such as www.apache.org; for OFF Record the 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 perform 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 (not related to the file system type); # for details, see http://httpd.apache.org/docs-2.0/mod/core.html#tenablemap # # Enablemap off # # Enablesendfile: Controls whether to use SendFile Kernel to support 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 # # ERRORLOG: Error log file positioning. # If you don't define an ErrorLog instruction within , this virtual host's error message # will record it here. If you define ERRORLOG there, these error messages will be recorded in the file you # defined instead of defined files. # RRLOG 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 /"% {referer} I / "/" "combined logformat"% h% L % U% T / "% r /"%> s% b "common logformat"% {referer} i ->% u "referer logformat"% {user-agent} i "Agent # you need to install MOD_LOGIO.C module You can 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 don't define this instruction within , the transfer information will be recorded here, # If you define this instruction, record the location you specified instead of the defined position. # Customlog logs / access_log common # # If you want to record Agent and Referer information, you can use the following instructions # # Customlog logs / referer_log referer # CustomLog logs / agent_log agent # # If you want to use a file record Access, Agent, Referer information, # You can define this instruction below: # #ustom logs / access_log combined # # ServerToKens # This command defines the type of information included 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 # # Free Add Containers to Server Version and Virtual Host Name Mouth Information to Server-Generated Output Page # (Internal Error Document, FTP Directory List, MOD_STATUS and MOD_INFO Output, etc., in addition to CGI error # or custom errors Outside the documentation). # Set to "email" will contain a MailTo pointing to ServerAdmin: connection. # You can be the following: ON | Off | Email # Serversignature ON # # aliases: Add your alias you need, the format is as follows: # alias alias true name # # 注意, if you have the alias, you contain "/ ", Then" / "is also required 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 the FancyIndexed directory list, if you don't use, # fancyIndexing, you can comment. # # Alias ​​/ icons / "/ usr / local / apache2 / icons /" # # options indexes multiviews # allowoverride none # Order, Deny ## allow from all # < / DIRECTORY> # # 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 MultiViews IncludesNoExec AddOutputFilter Includes html Order allow, deny Allow 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. # 的 "/" Rule with Alias ​​# Scriptalias / CGI-BIN / "/ usr / loacl / apache2 / cgi-bin /" # This is the intended command addType Application / X-httpd-php .php loadingModule PHP4_MODULE MODULES / LIBPHP4.SO # # Add mod_cgid.c setting, MOD_CGID provides a # script interface path for UNIX sockets 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 ALLOW, DENY Allow from all # # redirect Allow you to tell the client using documents existing in the server name space, # Instead, this helps customers locate documents that change the location. #, For example: # redirect permanent / foo http://www.example.com/bar # # Control Server-Generated Directory List Display Command # # indexoptions: Control Server-Generated Directory List Display Features.

# Indexoptions fancyindexing versionsORT # # addicon * instruction tells the server how to display different extensions, # only for FancyIndexed instructions # addiconbyencoding (cmp, / icons / compressed.gif) X-compress x-gzip addiconbype (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 .exe addicon /icons/binhex.gif .hqx addicon /icons/tar.gif .tar addicon/icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv addicon . Gif .txt addicon /icons/c.gif .c addicon /icons/p.gif .pl .py addicon /icons/f.gif .for addicon /icons/dvi.gif .dvi addicon /icons/uueencoded.gif .uu Addicon /icons/script.gif .conf .sh .shar .csh .ksh.gif .tex addicon /icons/bomb.gif core addicon /icons/back.gif .. Addicon / Icons / HAND .right.gif ready addicon /icons/folder.gif ^ ^ Directory ^^ addicon /icons/blank.gif ^^ blankicon ^^ # # defaultic for files for files without explicit definitions # defaulticon /icons/unknown.gif # # addDescription allow you to place after server-generated index A short description. # Only valid for the FancyIndexed command. # Format: AddDescription "description" filename # # AddDescription "GZIP compressed document" .gz # AddDescription "tar archive" .tar # AddDescription "GZIP compressed tar archive" .tgz # # ReadmeName specify the default server README file to find the name, And add to the directory list # # headername Specify the file name readmename readme.html headername header.html # #DExignore specified by the directory list prefix file, and does not include the file name collection in the list, # supports the shell type wildcard. # Indexignore. ?? * * ~ * # HEADER * README * RCS CVS *, V *, T # # addencoding allows you to use (MOSAIC / X 2.1 ) to extract information in information transfer, # Note: Not all browsing All support this option.

# Although the name is similar, the following instructions are different from the FancyIndexing custom instruction above. # Addencoding X-Compress Z Addencoding 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 you can't do the same - using the Poland # text document (Network standard language code is PL) will want to use "AddLanguage Pl .po" to avoid General Affix with Perl scripts produces an unsurmount. # # 注意 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 - 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 .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .et AddLanguage fr .fr AddLanguage de .de AddLanguage he .he AddLanguage el. el AddLanguage it .it AddLanguage ja .ja AddLanguage pl .po AddLanguage ko .ko AddLanguage pt .pt AddLanguage nn .nn AddLanguage no .no AddLanguage pt-br .pt-br AddLanguage ltz .ltz AddLanguage ca .ca AddLanguage es .es AddLanguage Sv .sv addLanguage Cz .cz addlanguage ru.ru addlanguage tw .tw addlanguage hr .hr # languagepriority allows you to prioritize some languages ​​during the session. # # List them in a prioritized manner. 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 # # forceranguagePriority Allows you to Multiple Choices [in communication] # or Not Acceptable (Fallback) [no The case of accepting language matches provides a result page. # ForceLanguagePriority Prefer Fallback # # Specifies 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-1 AddDefaultCharse GB2312 # # Generally using 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 .latin1 Addcharset ISO-8859-2 .so8859-2 .latin2. Cen Addcharset ISO-8859-3 .iso8859-3 .latin3 Addcharset ISO-8859-4 .iso8859-4. Latin4 addcharset ISO-8859-5 .ISO8859-5 .latin5. cyr .io-ru addcharset ISO-8859-6 .iso8859-6 .latin6 .arb addcharset ISO-8859-7 .ISO8859-7 .latin7 .grk addcharset ISO- 8859-8 .latin8.heb addcharset ISO-8859-9 .ISO8859-9 .latin9 .trk Addcharst ISO-2022-JP .ISO2022-JP .jis addcharset ISO-2022-Kr .iso2022-kr .kis addcharset ISO-2022-CN .iso2022-cn .cis addcharset big5 .big5 .big5 # For Russian, use multiple character sets (how to use the client): addcharset windows-1251 .cp-1251 .win-1251 addcharset CP866 .CP866 Addcharset Koi8-r .koi8-r .koi8-ru addcharset koi8-ru. Koi8-Uk .ua addcharset ISO-10646-UCS-2 .ucs2 addcharset ISO-10646-UCS-4 .ucs4 addcharset 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) # #go.com. But the browser supports less.

# AddCharset GB2312 .gb2312 .gb AddCharset utf-7 .utf7 AddCharset utf-8 .utf8 AddCharset big5 .big5 .b5 AddCharset EUC-TW .euc-tw AddCharset EUC-JP .euc-jp AddCharset EUC-KR .euc-kr AddCharset Shift_jis .sjis # # addtype Allows you to add or override the MIME.TYPEPE Application / X-tar .tgz addtype image / x-tar .tgz addtype image / x-icon .tgz addtype image / x-icon .tgz addtype image / x-icon .tgz address.. Extended "Handlers": # 无 与 文件 文件 行. This can be compiled into the server or can be added to the Action command # (see below). # In order to use the CGI script outside of the ScriptaliaSed instruction: # (To make it available, you also need to add "execcgi" in Options. # # Addressler cgi-script .cgi # # for files that contain their own http headers # # Addhandler send-as-is asis ## for server-pased imagemap files: # # addhandler imap-file map # Agemap file: # #addhandler imap- file image # # For type images: (transfer resources) # (this It is the default setting to allow Apache's "IT WORKED" page to distribute multiple languages). # AddHandler Type-map var # # Filter Allows you to process it before you send it to the client. # # In order to be on the server Analyze the .SHTML documentation: # (To perform this instruction, you also need to add "include" "in the Options directive.) # # Addtype text / html .shtml # addoutputfilter incduDes .shtml # # action let you define The script that will be executed when you call the matching media file. This will reduce the Duplicate 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 Errors Answer with Three Style: # 1) Plain Text 2) Local Redirects 3) External Redirects # # Some examples: # errordocument 500 "The Server Made A Boo Boo." # Document 404 / confesing.html # errordocument 404 "/cgi-bin/missing_handler.pl" # errotocument 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 file.

# # Alias ​​/ error / include / "/ your / include / path /" ## to copy the / usr / local / apache2 / error / include / under / you / include / path / down # start, you can Create your own file collection, even for each virtual host. # No matter how your Serversignature is set, the default contains files will display your # aapche version number and your serveradmin email address # # 国化 错 文 文 需要 m 需要 m 需要 需要 需要 需要 需要 需要 需要 需要. 需要.. To activate them, cancel the following 30 rows Note symbol # alias / error / "/ usr / local / apache2 / error /" # # # allowOverride None # Options inCludesnoExec # adviceputfilter 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.var ErrorDocument 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.va r # 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" nokeepalive BrowserMatch "MSIE 4 / .0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4 / .0" force-response-1.0 BrowserMatch "Java / 1 / .0" force- Response-1.0 Browsermatch "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 Problem for properly handling 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-carefully BrowserMatch "^ WebDrive" redirect-carefully BrowserMatch "^ WebDAVFS / 1. [012]" redirect-carefully BrowserMatch "^ gnome-vfs" redirect-carefully # # allow you to use URL: http:// Servername / Server-Status is generated by MOD_STATUS # into and reports server status information. 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 Come Remote 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 HTTP / 1.1 "Channel" header . # ("Full" Add Server Version Information, "Block" removes all output "channel" header information.

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

New Post(0)