Httpd.conf translation of apache2

xiaoxiao2021-04-05  281

#

#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

http://httpd.ache.org/doc-2.0/> to achieve more information on these instructions

#

# Don't just read these instructions 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 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 the default setting parameters for all virtual hosts.

# 3. Setting parameters for virtual hosts

#

# Configuration and Log File Name: If your specified file name is "/" (Win32 "Dirver: /"),

# The server will use the absolute path, if the file name is not "/", then it will put serverroot

# 的 value is attached to the front of the file name, for example, for "logs / foo.log", if the value of ServerRoot

# Is "/ usr / local / apache2", the file should be "/usr/local/apache2/logs/foo.log"

#

## 第一 区: Global Environmental Parameters

#

# The parameters set here will affect the behavior of the entire Apache server;

#, For example, the quantity of concurrent requests that can process the Apache.

#

#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 networks,

# Please read the document related to LockFile (maybe

#

http://httpd.apache.org/docs-2.0 ... .html # lockfile>).

# This will make you solve many problems.

#

# Do not add a slash at the end of the path.

#

Serverroot "/ usr / loacl / apache2"

#

# Serial access locks must be saved on local disks

#

#Lockfile logs / affept.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 two apache to use the same bracket file,

# This note panel file must be saved on the local disk.

#

#Scoreboardfile logs / apache_runtime_status

#

#PIDFILE: Record the file of the server startup process number.

#

Pidfile logs / httpd.pid

#

#Timeout: Timeouts before receiving and sending

#

TIMEOUT 300

#

#Keepalive: Whether a solid connection is allowed (there are multiple requests for each connection),

#. Set to "OFF".

#

Keepalive ON

#

#MaxkeepaliveRequests: The maximum number of requests allowed during the stable connection, and 0 is set to 0 means unlimited access.

# 我们 推荐 You will set it to a larger value in order to improve performance

MaxkeepaliveRequests 100

#

#Keepalivetimeout: The number of seconds received from the same customer on the same connection

#

KeepaliveTimeout 15

##

## Server-pool size setting (for MPM)

##

# prefork mpm

# StartServers: The number of processes started when the server starts

# MinSpareServers: Minimum number of spare processes

# MaxSpareServers: Maximum number of spare processes

# MaxClients: The maximum number of processes allowed by the server

# MaxRequestSperchild: A maximum number of requests allowed by a service process

StartServers 5

MinSpareServers 5

MaxSpareServers 10

MaxClients 150

MaxRequestperChild 0

# Worker MPM

# StartServers: Number of service processes when the server starts

# MaxClients: Maximum number of users allowed at the same time

# Minsparethreads: Number of minimum working threads

# MaxSparethreads: Number of maximum working threads allowed

# Threadsperchild: Work thread constant in each service 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: Number of service processes

# StartThreads: The number of starting threads in each service process

# Minsparethreads: Number of minimum threads

# MaxSparethreads: The maximum number of threads guaranteed

#Maxthreadsperchild: Maximum number of threads allowed for each 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 constant 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 that start 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: Stack size assigned to each working thread

# Startthreads: The number of threads started when the server starts # minsparethreads: The number of idle threads used to handle the real request

#Maxsparethreads: The maximum number of idle threads

# Maxthreads: Maximum number of threads at the same time

# MaxRequestperChild: The maximum number of thread service requests,

# Recommend it to 0 to achieve unlimited access

Threadstacksize 65536

StartThreads 250

Minsparethreads 25

Maxsparethreads 250

Maxthreads 1000

MaxRequestperChild 0

# Os / 2 mpm

# StartServers: Quantity of the startup service process

# Minsparethreads: Minimum idle thread per process allowed

#Maxsparethreads: Maximum idle thread per process allowed

# MaxRequestSperchild: Maximum number of connections allowed for each service process

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,

# Therefore, these instructions are included here so that it can be activated before use.

# The static compiler module does not need to be listed here (ie the modules listed in "httpd -l")

#

# 图 例::

# Loadingmodule foo_module modules / mod_foo.so

#

#

# ExtendedStatus: When "Server-Status" is called, the control Apache is a "full" state.

# 信息dededStatus ON, or generates basic information (ExtendedStatus OFF).

# 认 为 OFF

#

# ExtendedStatus ON

### 第 二: "Lord" service configuration

#

# This area establishes a directive value for the "master" server to respond to those who are not

# Define any request for processing.

# These values ​​also provide default values ​​to the container defined later.

# If there is definition in , the directive value defined here will be

The definition of # covered.

#

#

# If you want httpd to run in another user or group, you must start in root mode when starting

# And then switch it to the user or group you want to use.

#

# 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: 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,

# E.g:

Admin@your-domain.com

#

ServerAdmin

Kreny@sina.com

#

# ServerName Specifies Apache to identify its own name and port number.

# Usually this value is automatically specified, but we recommend that you explicitly specify it to prevent errors from starting.

#

# If you specify an invalid DNS name for your host, Server-generated redirect will not work.

# See UsecanonicalName Directive

#

# If your host is not registered with a DNS name, type it here IP address

# In any case, you must use its IP address to provide services.

# Here, use an easy understanding manner to redirect services

Servername

Www.dalouis.com:80

#

# UsecanonicalName: Decide how Apache constructs the instructions of 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 with access rights (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, ALOW

Deny from all

#

# Note From here, you must express which special features can be used.

# - So, if Apache doesn't work like you expect,

# Please check if you are clearly specified below.

#

#

# This will change to Documentroot you set

#

#

# Options: This command can be "none", "all", or any combination of the following options:

# 中d es inclus 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 see

# "

http://httpd.apache.org/docs-2.0/mod/core.html#optioins "to achieve more information.

#

Options Followsymlinks

#

# AllowOverride Controls the instructions that are placed in the .htaccess file.

# It can be "all", "none", or a combination of the following instructions:

# Options fileInfo authconfig limited

#

ALLOWOVERRIDE NONE

#

# Control Who can get a service.

#

ORDER ALOW, DENY

ALLOW 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, set up the root user

# "./" This Userdir is very useful.

# If you use Apache 1.3 or above, we strongly recommend you

# In your server configuration file contains the following line

Userdir disabled root

#

# 下 below is an example of a read-only property using the userdir directory to make a site:

#

#

# Allowoverride fileinfo authconfig limited indexes

# Options MultiViews INDEXES SYMLINKSIFOWNERMATCH INCLUDENOEXEC

#

# Order allow, deny

# Allow from all

#

#

# Order deny, allow

# Deny from all

#

#

#

# DirectoryIndex: Define Request is a directory, Apache provides the user's file name to the user

#

# index.html.var file (a type image file) is used 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 prevents .htaccess and .htpasswd files are viewed by the web customer.

#

ORDER ALOW, DENY

Deny from all

#

# TypeConfig: Where to query mime.types files in the definition.

#

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 a binary document, such as software or images, you should use

# "Application / Octer-Stream" to prevent browser from displaying binary files as text.

#

DefaultType Text / Plain

#

# MOD_MIME_MAGIC Allows the server to use different clues from their own type of file (HINTS),

# This MIMEMAGICFILE directive defines the file where the Hints definition is located.

#

MIMEMAGICFILE CONF / MAGIC

#

# Hostnamelookups: Specifies the name of the recorder or an IP address, for example, when this directive is ON

# Record the host name, such as

Www.apache.org; record IP address when OFF, 204.62.129.132.

# The default value is OFF, this is much better than set to ON, because if it is set to ON, each user request will be

# At least a query for Nameserver.

#

Hostnamelookups off

#

# Enablemap: 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, close it will increase system performance (independent of file system type);

# See the case, please refer to

http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap

#

# Enablemmap off

#

# Enablesendfile: Controls if you use SendFile Kernel to send files

# (If the operating system is supported). The default is ON, if your server is installed in the network file system

# (NFS), please close it.

# See

http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile

#

# Enablesendfile off

#

# RRLOG: Error log file positioning.

# If you don't define an ErrorLog instruction in , this virtual host's 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: Controls 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 / "/"% {user-agent} 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 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 don't define this instruction within , 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 the 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 to record Access, Agent, and Referer information,

# You can define this command as follows:

#

# Customlog logs / access_log combined

#

# ServerToKens

# This instruction definition is included in the information type in the HTTP response header. Default "full",

# This means that the operating system type and compilation information in the module are included in the response header.

# Can be set to one of the columns:

# Full | OS | Minor | MINIMAL | Major | Prod

# Full conveys the most information, and the Prod is at least.

#

ServerToKens Full

#

# 随意 加加 加 包 包 信息 信息 信息 信息 信息 信息 一 中 中 到 中 到 到 到

# (Internal error document, FTP directory list, mod_status, and mod_info output, etc., in addition to CGI errors

# 或 或 自 错 文 文 文 错

# Set to "email" will contain a MailTo pointing to ServerAdmin: connection.

# Can be as required: ON | OFF | Email

#

Serversignature ON

#

# Aliases: Add the alias you need, the format is as follows:

# Alias ​​alias true name

#

# Note that if you don't have "/" on the alias, "/" is also required in the URL.

# Therefore, "/ icons" is not alias in this example.

# If the alias is ended with "/", then the real name must also end with "/".

# If the alias is omitted "/", the real name must also be omitted.

#

# We use alias "/ icons /" to represent a FancyIndexed directory list, if you don't use it,

# FancyIndexing, you can comment out.

#

# 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 from it.

#

Alias ​​/ Manual "/ usr / loacl / apache2 / manual"

Options Indexes Followsymlinks MultiViews Includesnoexec

AddOutputFilter Includes HTML

ORDER ALOW, DENY

ALLOW from ALL

#

# Scriptalias: Specify 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. # The "/" rule in the tail is the same as Alias

#

Scriptalias / cgi-bin / "/ usr / loacl / apache2 / cgi-bin /"

# Here is the instruction to add PHP 4 support

AddType Application / X-httpd-php .php

LoadModule PHP4_Module Modules / Libphp4.so

#

# Add MOD_CGID.C settings, mod_cgid provides UNIX sockets that use CGID

# Script interface path.

#

# Scriptsock logs / cgisock

#

# Change "/ usr / local / apache2 / cgi-bin" to your ScriptaliaSed 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 the document existing in the server name space,

# Instead now, this helps customers locate those documents that change the location.

# E.g:

# Redirect permanent / foo

http://www.example.com/bar

#

# Control Server-Generated Directory list display

#

#

# Indexoptions: Control the Server-Generated Directory list display feature.

#

IndexOptions FancyIndexing Versions

#

# Addicon * instruction tells the server how to display the image files of different extensions,

# Only for FancyIndexed instructions

#

AddiconbyEncoding (CMP, / ICONS / Compressed.gif) X-Compress X-Gzip

AddiconByType (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 /icons/compressed.gif.z .z .tgz .gz .zip

Addicon /icons/a.gif.ps .ai .eps

Addicon /icons/Layout.gif .html .shtml .htm .pdf

Addicon /icons/text.gif.txt

Addicon /icons/c.gif .c .c

Addicon /icons/p.gif.pl .py

Addicon /icons/f.gif .for

Addicon /icons/dvi.gif.dvi

Addicon /icons/uuencoded.gif .uu

Addicon /icons/script.gif .conf .sh .shar .csh .ksh .tcl

Addicon /icons/tex.gif .texaddicon /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 the file for files without explicit definition icons

#

Defaulticon /icons/unknown.gif

#

# AddDescription Allows you to place a short description after server-generated index.

# Only valid for the FancyIndexed command.

# 地式: addDescription "Description" file name

#

# AddDescription "gzip compressed document" .gz

# AddDescription "tar archive" .tar

# AddDescription "Gzip Compressed Tar Archive" .tgz

#

# BendMename Specifies the name of the README file to find the server default, and add it to the list of directories

#

#HEADERNAME Specifies the file name of the directory list prefix file

ReadMename Readme.html

Headername header.html

#

# Indexignore Specifies the directory index to neglect and is not included in the list of file names in the list.

# Support the 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 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: The community as a language keyword is undoubtedly not the same - Poland

# 文 文 (Network Standard Language Code PL) will want to use "AddLanguage Pl .po"

# To avoid errity with the general affix to the Perl script.

#

# Note 2: The following example Example illustrates the two-character abbreviations in some examples with its country

# 二 二, such as "Danmark / DK" and "Danmark / Da" comparison.

#

# Note 3: In the case of "LTZ", we use three-character affix to violate RFC regulations.

# # 运 复 它 参 参 数据 数据 数据 数据 数据 数据 数据 数据 数据

#

# 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 (PT-BR) - Japanese (JA)

# Russian (RU) - Croatian (HR)

#

AddLanguage Da.dk

AddLanguage NL .nl

Addilaguage en .en

AddLanguage et .et

AddLanguage Fr .fr

AddLanguage de .de

Addilanguage He .he .he

AddLanguage El .l.

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 EN-Tw.tw

AddLanguage Hr .hr

# LanguagePriority Allows you to use some languages ​​during the session.

#

# List them in prioritization. We use us more or less ways to arrange sequence in alphabetics

# Arrange them. 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 (Prefer) [in communication]

# Or NOTBABLE (Fallback) [Unacceptable language match] provides a result page.

#

ForceranguagePriority Prefer Fallback

#

# Specify the default character set for all the pages sent, which is always a good idea and for you.

# Internationalization of Web site opens the gate, this is not what you want. Similarly, designated

# The default character set has some small damage, such as a standard command using ISO-8859-1 (Latin1)

# '' '' '' '' ''

# There are also some JavaScript and URL syntax that always encourage you to use the default character set.

# 的 browser security reason.

#

#Adddefaultcharset ISO-8859-1

AddDefaultcharse GB2312

#

# Generally using a character set in a file extension. Maybe you want to avoid extension from language

# Collision, unless you have made a good test after each change.

# See

Http://www.iana.org/assignments/Character-sets to get the character set

# 的 名 列 list and their respective RFCs.

#

Addcharset ISO-8859-1 .iso8859-1 .latin1

Addcharset ISO-8859-2 .iso8859-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 .iso-ru

Addcharset ISO-8859-6 .ISO8859-6 .latin6 .arbaddcharset ISO-8859-7 .ISO8859-7 .latin7 .grk

Addcharset ISO-8859-8 .iso8859-8 .latin8 .heb

Addcharset ISO-8859-9 .iso8859-9 .latin9.trk

Addcharset 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 in the browser

# Extensive support. Pay attention to those uppercase letters.

# (It should not, but it is for compatibility with some browsers)

#

# See

Http://www.iana.org/assianments/Character-sets

# A list of them. 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 configured in the mime.types file for the specified file type

#

AddType Application / X-tar .tgz

AddType Image / X-icon .ico

#

# AddHandler Allows you to map determined file extensions named "Handlers":

# Behavior that is independent of file type. This can be compiled into the server or can also be added to the Action command

# 中 ((下.

# 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 files that contain their own http headers

#

# Addhandler Send-as-is asiss

#

# For server-pased imagemap files:

#

# AddHandler Imap-File Map

#

# agemap file:

#

#Addhandler imap- file image

#

# For type images: (transfer resources)

# (This 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 sending it to the client.

#

# In order to analyze (SSI) .SHTML documentation:

# (To perform this instruction, you also need to add "incrudes" in the Options directive.) #

# Addtype text / html .shtml

# AddocuTfilter Includes .shtml

#

# Action Let you define the script to be executed when the matching media file is called. This will decrease

# Repeat input of the URL path name for the CGI script that is often used.

# Format: Action Media / Type / CGI-Script / Location

# Format: Action Handler-Name / CGI-Script / Location

#

#

# Configurable errors should answer three styles:

# 1) Plain TEXT 2) Local Redirects 3) External Redirects

#

# Some examples:

# Document 500 "The Server Made a Boo Boo."

# Iredocument 404 / conforder.html

# Iredocument 404 "/cgi-bin/missing_handler.pl"

# Iredocument 402

http://www.example.com/subscription_info.html

#

#

# Comprehensively apply these instructions, we can create an international error response.

#

#We we use alias to redirect any / error/http_

# 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

#

#

# Iredocument 400 / error/http_bad_request.html.var

# Iredocument 401 / error/http_unauthorized.html.var

ErrorDocument 403 / Error.php

# Iredocument 404 / error/http_not_found.html.var

# RRORDocument 405 / error/http_method_not_allowed.html.var

# RRORDocument 408 / error/http_request_time_out.html.var

# Iredocument 410 / error/http_gone.html.var

# Iredocument 411 / error/http_length_required.html.var

# Iredocument 412 / error/http_precondition_failed.html.var

# RRORDOCUMENT 413 / ERRRR/HTTP_REQUEST_ENTINTITY_TOO_LARGE.HTML.VAR

# RRORDOCUMENT 414 /ERRRR/HTTP_REQUEST_URI_TOO_LARGE.HTML.VAR

# Iredocument 415 / error/http_service_unavailable.html.var

# RRORDocument 500 / error/http_internal_server_error.html.var

# Iredocument 501 / error/http_not_implement.html.var

# Iredocument 502 / error/http_bad_gateway.html.var

# Document 503 / error/http_service_unavailable.html.var

# RRORDocument 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 have fixed the problem of Microsoft's use DAV method that does not correctly handle the redirected Web folder.

# APPL DAV File System and VFS on GNOME also supports this method

# Treatment.

#

Browsermatch "Microsoft Data Access Internet Publishing Province" Redirect-Carefully

Browsermatch "^ WebDrive" Redirect-Carefully

Browsermatch "^ WebDAVFS / 1. [012]" Redirect-Carefully

Browsermatch "^ gnome-vfs" Redirect-Carefully

#

# Allow you to use the URL:

http:// Servername / Server-Status is born with mod_status

# And report 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 use of URLs:

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

#

#

# 代理 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.

# ("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 comment symbols:

# (No cacheroot is not buffered)

#

# 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 ends.

#

# Additional module configuration.

#

Include conf / ssl.conf

## Third District: Virtual host

#

# VirtualHost: You can set up a virtual host container to implement multiple on your host.

# Domain / Host Name. Most configuration information only use the name-based virtual host, so the server

# Don't worry about the problem of IP addresses, the following command instead of the virtual host name in *.

#

# See before you try to configure your virtual host, see

# URL:

http://httpd.apache.org/docs-2.0/vhosts/> Take more information.

#

# You can use the command line option "-s" to verify your virtual host configuration.

#

# Use the name-based virtual host.

#

# NamevirtualHost *

#

# 虚 体机 示例:

# 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

# DocumentRoot / www/docs/dummy-host.example.com

# Servername Dummy-Host.example.com

# Irelog logs / dummy-host.example.com-error_log

# Customlog logs / dummy-host.example.com-access_log comme #

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

New Post(0)