Apache MySQL PHP configuration file Chinese translation detailed

Source: Internet
Author: User
Tags aliases assert file upload parent directory parse error syslog system log valid

Apache configuration file httpd.conf Chinese detailed

#
# The configuration file based on the NCSA server is written by Rob McCool, Longzi translation
#
# Apache Server master configuration file. Includes directory settings for server directives.
# More details <URL:http://www.apache.org/docs/>
#
# Please read the instructions on the basis of understanding the use.
#
# After reading this document, the server will continue the search run
# E:/program Files/apache group/apache/conf/srm.conf
# E:/program Files/apache group/apache/conf/access.conf
# unless the logo is covered with resourceconfig or AccessConfig.
#
# The configuration ID consists of three basic parts:
# 1. As a whole to control the identity of the Apache server process (the ' Global Environment ').
# 2. The identity used to define the primary (default) server parameter.
# Respond to requests that the virtual host cannot handle.
# also provides setting values for all virtual hosts.
# 3. The settings for the virtual host. Configure different IP addresses and host names in an Apache server process.
#
# Configuration and log file name: When specifying server control file naming,
# starting with '/' (or ' drive:/' for Win32), the server will use these absolute paths.
# if the filename does not start with '/', consider the server root in advance--
# so "Logs/foo.log", if the server root directory is "/usr/local/apache",
# The server will be interpreted as '/usr/local/apache/logs/foo.log '.
#
# Note: The specified filename requires '/' instead of ' '.
# (for example, "C:/apache" instead of "C: Apache").
# If the drive name is omitted, the drive letter with Apache.exe is used by default
# We recommend that you specify the letter to avoid confusion.
#
### Part 1: Global environment
#
# The representation of this section will affect all Apache operations
# For example, the number of concurrent requests or configuration file addresses that can be processed
#
#
# ServerType desirable value inetd or standalone. INETD only applies to UNIX platforms
#
ServerType Standalone
#
# ServerRoot: The root node of the directory tree. Server configuration, error messages, log files are stored in the root directory.
#
# do not add "/" to the end of the catalogue
#
ServerRoot "C:/Program Files/apache group/apache"
#
# Pidfile: A file that the server uses to record the process ID at startup.
#
Pidfile Logs/httpd.pid
#
# Scoreboardfile: A file that is used to hold information about internal server processes.
# is not necessary. But if specified (this file is generated when Apache is run)
# then you must make sure that no two Apache processes share the same scoreboard file.
#
Scoreboardfile Logs/apache_runtime_status
#
# under Standard configuration, the server reads httpd.conf sequentially (this file can be specified by the-f parameter on the command line).
# srm.conf and access.conf.
# The current two files are empty. For simplicity, it is recommended that all identities be placed in one file.
# The identification of the following two annotations is the default setting.
# to allow the server to ignore these files can be "/dev/null" (for Unix)
# or ' nul ' (for Win32) as an argument.
#
#ResourceConfig conf/srm.conf
#AccessConfig conf/access.conf
#
# Timeout: Time to receive and send Timeout
#
Timeout 300
#
# KeepAlive: Allow connections to be kept (multiple requests per connection)
# "Off"-invalid
#
KeepAlive on
#
# maxkeepaliverequests: The maximum number of requests per connection.
# set to 0 means no limit
# It is recommended that you set higher values for the best performance.
#
Maxkeepaliverequests 100
#
# KeepAliveTimeout: The wait time between two requests for the same connection to the same client.
#
KeepAliveTimeout 15
#
# under Win32, Apache produces one subprocess at a time to process the request.
# If this process dies, another subprocess is automatically generated.
# all incoming requests are multithreaded in the subprocess.
# The following two identities control the running of the process
#
#
# Maxrequestsperchild: Maximum number of requests before each child process dies
# If the number of this request is exceeded, the subroutine automatically exits, avoiding delayed use resulting in a memory overflow or other problem.
# Most systems do not need this setting,
# but parts, like Solaris, are really noteworthy.
# to Win32, can be set to 0 (unrestricted)
# unless there are other considerations.
#
# Note: This value does not include the "keptalive" request after each connection initialization request
# For example, if a subprocess processes an initialization request and 10 subsequent "keptalive" requests,
# under this limit, only one request is recorded.
#
Maxrequestsperchild 0
#
# Threadsperchild: Number of concurrent threads allowed by the server.
# The setting of this value depends on the responsiveness of the server (approximately multiple requests are activated at the same time, the slower the processing time for each request)
# and the system resources that the server is allowed to consume.
#
Threadsperchild 50
#
# Listen: Allows Apache to be bound to the specified IP address and port as a secondary option for the default value.
# See <VirtualHost>
#
#Listen 3000
#Listen 12.34.56.78:80
#
# bindaddress: This option enables virtual hosts.
# This identity is used to tell the server which IP address to listen to.
# includes: ' * ', IP address, or domain name.
# See <VirtualHost> and Listen directives.
#
Bindaddress 166.111.178.144
#
# The Apache module is compiled into a standard Windows architecture.
#
# The following modules are bound to the standard Apache binary Windows distribution.
# to modify the standard operation, uncomment the following line and modify the list of specified modules.
#
# Warning: This is an advanced option. May cause the server to crash.
# without expert guidance, don't change it easily.
#
#ClearModuleList
#AddModule mod_so.c mod_mime.c mod_access.c mod_auth.c mod_negotiation.c
#AddModule mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_userdir.c
#AddModule mod_alias.c mod_env.c mod_log_config.c mod_asis.c mod_imap.c
#AddModule mod_actions.c MOD_SETENVIF.C MOD_ISAPI.C
#
# Dynamic Shared Object (OBJECT,DSO)
#
# to use the Function module based on DSO, you need to replace the corresponding
# ' LoadModule ' line. These included identities will take effect before they are used.
# For more information about DSO, please see the Apache1.3 version of the Readme.dsoso.
# run "Apche-l" to display a list of Apache Mole modules (similar standard connections already in effect)
#
# Note: The order in which the modules are loaded is important. Do not modify the following order without expert advice.
#
#LoadModule Anon_auth_module Modules/apachemoduleauthanon.dll
#LoadModule Dbm_auth_module Modules/apachemoduleauthdbm.dll
#LoadModule Digest_auth_module Modules/apachemoduleauthdigest.dll
#LoadModule Cern_meta_module Modules/apachemodulecernmeta.dll
#LoadModule Digest_module Modules/apachemoduledigest.dll
#LoadModule Expires_module Modules/apachemoduleexpires.dll
#LoadModule Headers_module Modules/apachemoduleheaders.dll
#LoadModule Proxy_module Modules/apachemoduleproxy.dll
#LoadModule Rewrite_module Modules/apachemodulerewrite.dll
#LoadModule Speling_module Modules/apachemodulespeling.dll
#LoadModule Info_module Modules/apachemoduleinfo.dll
#LoadModule Status_module Modules/apachemodulestatus.dll
#LoadModule Usertrack_module Modules/apachemoduleusertrack.dll
#
# Extendedstatus control when a server state handle is called is a "complete" state information (Extendedstatus on)
# or simply return the basic information (extendedstatus off)
# default is: Off
#
#ExtendedStatus on
### Part 2: Master server Configuration
#
# The identity of this section is used for all the setting values of the primary server.
# respond to any requests that are not processed by the <VirtualHost> definition
# These values also give you a default value for the <VirtualHost> that you later define in this file.
#
# All logos may appear in <VirtualHost>.
# The corresponding default values are overwritten by the virtual host redefinition.
#
#
# Port:standalone the port on which the server listens.
# when Apache can listen for the specified port, it needs to be set up in the firewall.
# Other servers running httpd may also affect this port. Disable
# If you are experiencing problems, turn off all firewalls, security, and other services.
# Windos NT's "netstat-a" directive will help analyze the problem.
#
Port 80
#
# ServerAdmin: Your address. If there is any problem with the server will send a letter to this address.
# This address will appear on some pages generated by the server, for example, error reporting.
#
ServerAdmin chenyl98@mails.tsinghua.edu.cn
#
# ServerName allows the host name to be set. If different from the program, the host name returns the client.
# (for example, use "www" instead of the host's real name)
#
# Note: Host name cannot be arbitrarily specified. Must be a valid DNS name for your machine. Otherwise, it will not work properly.
# If you can't understand, be inclined to ask your network administrator.
# If your host does not have a DNS name registered, you can enter an IP address here.
# This must be accessed by IP address. (e.g., http://123.45.67.89/)
# This can be done to redirect the work.
#
# 127.0.0.1 is the local loop address for TCP/IP, usually named localhost.
# The machine defaults here to itself. If you're using Apache for local testing and development,
# You can use 127.0.0.1 as the server name.
#
#ServerName New.host.name

#
# DocumentRoot: The directory where the service documents are placed.
# in the default state, all requests are based on this directory.
# But direct symbolic joins and aliases can be used to point to other locations.
#
DocumentRoot "D:/www_root"
#
# Apache access to each directory can be set to the associated services and attributes are allowed or (and) disallowed.
# (also affects its subdirectories)
#
# First, set the "default" address with only the most basic permissions.
#
<directory/>
Options FollowSymLinks
AllowOverride None
</Directory>
#
# Note that you must set up special permissions from now on.
# This will not produce unexpected results.
# Please confirm it carefully.
#
#
# This address should be consistent with DocumentRoot
#
<directory "D:/www_root" >
#
# This value is: ' None ', ' all ', or the following combination: ' Indexes ',
# "Includes", "FollowSymLinks", "execcgi", or "multiviews".
#
# note ' MultiViews ' must explicitly specify---' Options all ' does not include this attribute.
#
Options Indexes followsymlinks MultiViews
#
# this controls which. htaccess files in the directory can be overwritten.
# Allow value: ' All ' or a combination of the following: ' Options ', ' FileInfo ',
# "Authconfig", "Limit"
#
AllowOverride None
#

#
Order Allow,deny
Allow from all
</Directory>
#
# Userdir: When requesting ~user, append to the path address of the user's home directory.
#
# under Win32, it is not required to specify a home directory for the user to log in.
# so you can use the following format.
# Detailed Reference Document Userdir
#
<ifmodule mod_userdir.c>
Userdir "F:/homepages/"
</IfModule>
#
# Control access to the Userdir directory. The following is a example
# The following is an example of a site where permissions are restricted to read-only.
#
#<directory "E:/program files/apache group/apache/users" >
# allowoverride FileInfo authconfig Limit
# Options MultiViews Indexes symlinksifownermatch includesnoexec
# <limit Get POST OPTIONS propfind>
# Order Allow,deny
# Allow from all
# </Limit>
# <limitexcept Get POST OPTIONS propfind>
# Order Deny,allow
# Deny from all
# </LimitExcept>
#</directory>
#
# DirectoryIndex: The default HTML directory index file name.
# Use spaces to separate multiple file names.
#
<ifmodule mod_dir.c>
DirectoryIndex index.html
</IfModule>
#
# accessfilename: The file name used to control access information in each directory.
#
Accessfilename. htaccess
#
# The following line prevents the client from accessing the. htaccess file.
# because. htaccess files usually contain authorization information,
# Security considerations do not allow access.
# If you want visitors to see the contents of the. htaccess file,
# These lines can be commented.
# If you modify the accessfilename above,
# Please make the appropriate changes here.
#
# at the same time, you will typically save your password with a similar. htpasswd file.
# These files can also be protected.
#
<files ~ "^". Ht >
Order Allow,deny
Deny from all
</Files>
#
# Cachenegotiateddocs: By default, Apache sends "Pragma:no-cache" to each document
# This will require the proxy server not to cache this document.
# cancels this property by canceling the following lines, so the proxy server caches the documents.
#
#CacheNegotiatedDocs
#
# Usecanonicalname: (1.3 New) When this setting is on,
# whenever Apache needs to build a self referenced URL (point to the response source server),
# It will use ServerName and port to build a canonical format.
# When this setting is off, Apache will use the client-supplied host name: port
# This will affect both server_name and server_port in the CGI script
#
Usecanonicalname on
#
# Typesconfig Record Media type (mime.types) files or similar places
#
<ifmodule mod_mime.c>
Typesconfig Conf/mime.types
</IfModule>
#
# DefaultType is the default type of file that the server handles unconfirmed types, such as the extension to date.
# If your server contains text or HTML documents primarily, ' Text/plain ' is a good setting
# If the server contains primarily binary files, such as applications or pictures,
# better set to ' Application/octet-stream ' to prevent browsers from displaying binary files as text.
#
DefaultType Text/plain
#
# The Mod_mime_magic module allows the server to use different identities of the file itself to determine the file type.
# mimemagicfile indicates where the definition of the module file identity is located.
# Mod_mime_magic is not part of the default server.
# (You must use LoadModule to append the DSO section of the ' Global Environment ' section],
# or include the mod_mime_magic part when compiling the server
# included in <IfModule>.
# that is, if the module is part of the server, the Mimemagicfile identity will execute.
#
<ifmodule mod_mime_magic.c>
Mimemagicfile Conf/magic
</IfModule>
#
# Hostnamelookups: Registers the client's machine name or IP address.
# For example: www.apache.org (ON) or 204.62.129.132 (off).
# The default is off because for the network, it's best to have people consciously set to ON,
# because opening this feature means that each client request will cause at least one lookup request to be sent to the name server
#
Hostnamelookups off
#
# ErrorLog: Address of the Error record file
# If you do not specify Errorlog in <VirtualHost>
# Changes to the virtual host error forestall will be recorded here.
# If you explicitly specify an error record file in <VirtualHost>,
# then the error will be recorded there, not here.
#
ErrorLog Logs/error.log
#
# LogLevel: Controls the number of information recorded in the Error.log.
# Possible values: Debug, info, notice, warn, error, crit,
# Alert, Emerg.
#
LogLevel warn
#
# The following identification defines the format used by the Customlog identity. (see below)
#
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
#
# access the location and format of the record (the record file format for the function).
# If you do not define a record file in <VirtualHost>,
# those access records will be saved here. Contrariwise, if you *do*
# Conversely, if a record file is specified, the access record is recorded there rather than in the file.
#
Customlog Logs/access.log Common
#
# If you want to use the proxy and reference log files, uncomment the following identities
#
#CustomLog Logs/referer.log Referer
#CustomLog Logs/agent.log Agent
#
# If you want to record access, proxy, reference information (compound record format) in a file
# You can use the following identification
#
#CustomLog Logs/access.log combined
#
# in server-generated pages (such as Error document information, FTP directory listings, and so on, excluding CGI-generated documents)
# Add a server version and virtual host name information.
# set to ' EMail ' will contain mailto:serveradmin connections.
# Optional value: On | Off | EMail
#
Serversignature on
#
# By default, Apache parses all CGI scripts with work lines
# This comment line (the first line of the script) includes ' # ' and '! ' followed by the program path to execute the special script.
# for Perl scripts, the Perl.exe in the C: "Program Files" Perl directory.
# The work line is as follows:
#!c:/program Files/perl/perl
# Note that the real work line cannot have indents, it must be the first line of the file.
# Of course, the CGI process must be started with the appropriate scriptalias or EXECCGI option identification.
#
# However, Apache in Windows allows the above UNIX approach, or it can be in the form of a registry.
# The registry executes the file in the same way that you double-click to run it in Windows Explorer.
# This script action can be set in the View menu of Windows Explorer.
# Folder Options, and then view file types. Click on the Edit button.
# Modify the Operation properties. Apache 1.3 will attempt to perform an ' Open ' operation,
# If you fail, you will try the work line
# This property will change in Apache release 2.0.
#
# each mechanism has its own specific security vulnerabilities that can cause others to run programs that you do not want to invoke.
# The best solution is still under discussion.
#
# If this special attribute of Windows takes effect (and the UNIX attribute is invalid)
# Uncomment the following identities.
#
#ScriptInterpreterSource Registry
#
# The above identification can be replaced separately in the <Directory> block or. htaccess file.
# You can choose ' Registry ' (Windows behavior) or ' script '
# (Unix behavior) option, overrides the default value of the server.
#
#
# aliases: an unlimited append alias. The format is as follows:
# Alias Name True
#
<ifmodule mod_alias.c>
#
# Note If the alias contains '/', the server makes the request in the current URL.
# so "/icons" cannot be used for aliases
# must use '/icons/'.
#
alias/icons/"C:/Program Files/apache group/apache/icons/"
<directory "C:/Program files/apache group/apache/icons" >
Options Indexes MultiViews
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
#
# Scriptalias: Controls which directory contains server scripts.
# Scriptalias Essence line and aliases the same. , except that
# The difference is that the document in the real name directory is considered an application.
# is run by the server instead of to the client when the request is made.
# "/" symbol of the same rule
# the same as the alias.
#
scriptalias/cgi-bin/"C:/Program Files/apache group/apache/cgi-bin/"
#
# "C:/Program Files/apache Group/apache/cgi-bin" can be modified to any directory where CGI scripts are placed
#
<directory "C:/Program files/apache group/apache/cgi-bin" >
AllowOverride None
Options None
Order Allow,deny
Allow from all
</Directory>
</IfModule>
# alias End
#php脚本说明
scriptalias/php/"d:/php/"
AddType application/x-httpd-php. php
AddType application/x-httpd-php. php3
AddType application/x-httpd-php. phtml
Action application/x-httpd-php "/php/php.exe"
#php脚本说明结束
#
# Redirect allows you to tell a previous document on the client server, but it does not exist now.
# and can tell the client where to look.
# format: Redirect old-url New-url
#
#
# Control the identity of the server directory list display
#
<ifmodule mod_autoindex.c>
#
# fancyindexing identification is using a specific directory search or a standard (standard)
#
Indexoptions fancyindexing
#
# addicon* indicates the icons displayed for different files or extensions.
# These icons are displayed only in a specific retrieval state.
#
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. 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
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. Sh. Shar. csh. Ksh. tcl
Addicon/icons/tex.gif. Tex
Addicon/icons/bomb.gif Core
Addicon/icons/back.gif..
Addicon/icons/hand.right.gif README
Addicon/icons/folder.gif ^^ directory^^
Addicon/icons/blank.gif ^^ blankicon^^
#
# DefaultIcon The icon displayed for the file that made the icon.
#
Defaulticon/icons/unknown.gif
#
# Adddescription Appends a small paragraph description after a server-generated retrieved file.
# This entry is only valid when set to Fancyindexed
# Format: adddescription "description" filename
#
#AddDescription "GZIP Compressed document". GZ
#AddDescription "Tar archive". Tar
#AddDescription "GZIP Compressed Tar archive". tgz
#
# Readmename is the default Readme file for the server.
# and is appended to the end of the directory list.
#
# Headername is the name of the file in the directory that needs to be displayed in advance.
#
# if MultiViews is in the option, as a result, the server will first find name.html,
# If it exists, include it. If name.html does not exist,
# The server will continue to look for name.txt. If present is included as plain text.
#
Readmename README
Headername HEADER
#
# Indexignore is a series of file names. The directory index ignores these files and is not included in the list.
# allows wildcard characters to be used.
#
Indexignore.?? * *~ *# header* readme* RCS CVS *,v *,t
</IfModule>
# Indexing logo End
#
# file Type
#
<ifmodule mod_mime.c>
#
# addencoding can be used for special browsers (mosaic/x 2.1+) for fast transfer of compressed information.
# Note: Not all servers are supported.
# In addition to similar names, the following add* logos have no effect on the Fancyindexing custom logo above.
#
AddEncoding x-compress Z
AddEncoding X-gzip GZ tgz
#
# AddLanguage is used to specify the language of the document.
# You can use the content label to specify the language of each file.
#
# note 1: The suffix does not have to be the same as the keyword in the language you are using.
#---Polish (Polish, Standard code for PL) documents can be used
# "AddLanguage Pl. po" to avoid confusion with Perl script files.
#
# NOTE 2: The following example shows that the two-letter language abbreviation and the two-letter national abbreviation are not necessarily the same.
# e.g ' DANMARK/DK ' contrasts ' danish/da '.
#
# Note 3: One of the ' Ltz ' uses three characters, which differs from the RFC requirements.
# But this problem is being revised and the RFC1766 is being cleaned up again.
#
# Danish Danish (DA)-Netherlands Dutch (NL)-English 中文版 (en)-Essania Estonian (EE)
# French French (FR)-German German (DE)-Modern Greek Greek-modern (EL)
# Italian Italian (it)-North Korea Korean (KR)-Norwegian Norwegian (no)
# Portuguese Portuguese (PT)-Luxembourg luxembourgeois* (LTZ)
# spanish Spanish (es)-Swedish Swedish (SV)-Catalan Catalan (ca)-Czech Czech (CZ)
# Polish Polish (PL)-Brazilian Brazilian Portuguese (PT-BR)-Japan Japanese (JA)
# Russian Russian (RU)
#
AddLanguage da. DK
AddLanguage NL. nl
AddLanguage en. en
AddLanguage et. ee
AddLanguage Fr. fr
AddLanguage de. de
AddLanguage el. El
AddLanguage He.
Addcharset iso-8859-8. iso8859-8
AddLanguage it. it
AddLanguage ja. Ja
Addcharset ISO-2022-JP. JIS
addlanguage Kr. kr
Addcharset Iso-2022-kr. Iso-kr
AddLanguage No. No
AddLanguage Pl. po
Addcharset iso-8859-2. Iso-pl
AddLanguage Pt. PT
AddLanguage pt-br. pt-br
AddLanguage Ltz. Lu
AddLanguage ca. ca
AddLanguage es. es
AddLanguage sv. SE
AddLanguage CZ. CZ
AddLanguage ru. ru
AddLanguage tw. tw
Addcharset Big5. Big5. Big5
Addcharset WINDOWS-1251. cp-1251
Addcharset CP866. cp866
Addcharset iso-8859-5. Iso-ru
Addcharset koi8-r. Koi8-r
Addcharset UCS-2. ucs2
Addcharset UCS-4. Ucs4
Addcharset UTF-8. UTF8
# languagepriority can set the priority of the language.
#
# Priority Descending order
# Here in alphabetical order, can be modified
#
<ifmodule mod_negotiation.c>
Languagepriority en da nl et fr de el it ja kr no pl pt pt-br RU ltz ca es sv TW
</IfModule>
#
# AddType can temporarily change mime.types or specify a special file format.
#
# For example: PHP 3.x modules (non-Apache standard accessories, see HTTP://WWW.PHP.NET) can be defined in the following format:
#
#AddType application/x-httpd-php3. php3
#AddType Application/x-httpd-php3-source. Phps
#
# PHP 4.x, using:
#
#AddType application/x-httpd-php. php
#AddType Application/x-httpd-php-source. Phps
AddType Application/x-tar. tgz
#
# AddHandler can map a specific file name extension to a processing method.
# regardless of file type. This attribute can be built into the server or appended to the operation instruction (see below)
#
# If you want to use a server-side application or a CGI outside of scriptaliased, uncomment the following line
#
# with CGI script:
#
#AddHandler Cgi-script. CGI
#
# HTML documents parsed with the server
#
#AddType text/html. shtml
#AddHandler server-parsed. shtml
#
# The Send-asis HTTP file attribute of Apache can be activated by canceling the following annotation characters
#
#AddHandler Send-as-is ASIS
#
# If you use a server-side resolved image location file, use the following identity:
#
#AddHandler imap-file Map
#
# To activate type maps use:
#
#AddHandler type-map var
</IfModule>
# Document Type description End
#
# Action defines a script that executes when a file matches.
# simplifies calls to common CGI files.
# Format: Action media/type/cgi-script/location
# Format: Action handler-name/cgi-script/location
#
#
# Metadir: Specifies the directory where the meta information file is saved.
# These files contain additional HTTP headers that are sent in the sending document.
#
#MetaDir. Web
#
# Metasuffix: Specifies the suffix of the file that contains meta information.
#
#MetaSuffix. Meta
#
# Customizable Error response (Apache type)
# A total of three styles:
#
# 1) Plain text
#ErrorDocument "The server made a boo boo.
# Note: The first "number" is used to indicate the text, not actually output
#
# 2 Local redirection
#ErrorDocument 404/missing.html
# to redirect to the local url/missing.html
#ErrorDocument 404/cgi-bin/missing_handler.pl
# Note: A script or document that can be redirected to any server-side
#
# 3) External redirection
#ErrorDocument 402 http://some.other_server.com/subscription_info.html
# Note: Most of the environment variables associated with the initial request are not valid for such a script.
#
#
# Custom operations based on the browser
#
<ifmodule mod_setenvif.c>
#
# The following identification modifies the normal HTTP response operation.
# The first identifies the ability to cancel the activation state for netscape2.x and other browsers that do not have this feature
# These browsers can perform these functions with an error.
# The second identity is set for ie4.0b2. There's an incomplete http/1.1 directive.
# cannot remain active while 301 or 302 (redirect) response
#
Browsermatch "MOZILLA/2" nokeepalive
Browsermatch "MSIE 4". 0b2; "Nokeepalive downgrade-1.0 force-response-1.0
#
# The following identity cancels the response to a browser that violates the http/1.0 standard by not generating a basic 1.1 response.
#
Browsermatch "RealPlayer 4". 0 "force-response-1.0
Browsermatch "JAVA/1". 0 "force-response-1.0
Browsermatch "JDK/1". 0 "force-response-1.0
</IfModule>
# Browser Custom logo End
#
# allows you to view server status reports in the form of URL ' http://servername/server-status '
# modify '. your_domain.com ' to match the corresponding domain name to activate this feature
#
#<location/server-status>
# SetHandler Server-status
# Order Deny,allow
# Deny from all
# Allow from. your_domain.com
#</location>
#
# Allow URL '://servername/server-info ' to be used (requires loading mod_info.c),
# to view server configuration reports remotely.
# modify '. your_domain.com ' to match the corresponding domain name to activate this feature
#
#<location/server-info>
# SetHandler Server-info
# Order Deny,allow
# Deny from all
# Allow from. your_domain.com
#</location>
#
# It is reported that someone tried to exploit an old 1.1 loophole.
# This vulnerability is related to the distribution of CGI scripts on the Apache server.
# by canceling the comments on the following lines, you can transfer such an attack record to a record script on phf.apache.org.
# or it can be logged on the local server using the script scriptsupport/phf_abuse_log.cgi.
#
#<location/cgi-bin/phf*>
# Deny from all
# ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
#</location>
#
# Proxy Server identification. Uncomment the following line to activate the proxy server.
#
#<ifmodule mod_proxy.c>
# proxyrequests on
# <directory Proxy:*>
# Order Deny,allow
# Deny from all
# Allow from. your_domain.com
# </Directory>
#
# Activate/Cancel processing http/1.1 ' Via: ' Header
# ("full": Join server version; "Block": Cancel all outgoing via: header
# can be set value: Off | On | Full | Block
#
# Proxyvia on
#
# Modify the following lines and uncomment to activate the cache.
# (no cache is not used without cacheroot identity)
#
# cacheroot "E:/program files/apache group/apache/proxy"
# CacheSize 5
# Cachegcinterval 4
# Cachemaxexpire 24
# Cachelastmodifiedfactor 0.1
# cachedefaultexpire 1
# NoCache a_domain.com another_domain.edu joes.garage_sale.com
#</ifmodule>
# Agent Identity End
### Part 3: Virtual host
#
# Virtual Host: If you want to implement multiple domain names and host name services on a single server,
# can be set VirtualHost to implement. Most configurations
# Most of the settings use a name-based virtual host so that the server does not have to worry about the IP address.
# These are marked with an asterisk in the following logo.
#
# before attempting to set up a virtual host
# Please read the documentation in <URL:http://www.apache.org/docs/vhosts/>.
# to understand the details.
#
# The command line parameter '-s ' can be used to confirm the setting of the virtual host.
#
#
# Use a name-based virtual host
#
#NameVirtualHost *
#
# Virtual Host instance:
# Almost all Apache identities can be used within a virtual host.
# The first virtualhost section is used to request a server name without duplicates.
#
#<virtualhost *>
# ServerAdmin Webmaster@dummy-host.example.com
# documentroot/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 Common
#</virtualhost>









PHP configuration file php.ini Chinese version

;;;;;;;;;;;;;;;;;
;; about php.ini;;
;;;;;;;;;;;;;;;;;
; This file must be named ' php.ini ' and placed in the directory specified by the PHPINIDIR directive in httpd.conf.
; The latest version of PHP.ini can be viewed in the following two locations:
; Http://cvs.php.net/viewvc.cgi/php-src/php.ini-recommended?view=co
; Http://cvs.php.net/viewvc.cgi/php-src/php.ini-dist?view=co


;;;;;;;;;;;;
;; grammar;;
;;;;;;;;;;;;
; The syntax for this file is very simple. White-space characters and lines starting with semicolons are simply ignored.
; Chapter headings (for example, [PHP]) are also simply ignored, even though they may be of some significance in the future.
;
; The format of the directive is as follows:
; directive = value
; The instruction name (directive) is case-sensitive! So "Foo=bar" is different from "Foo=bar".
; Values (value) can be:
; 1. Strings (e.g. "foo") defined in quotation marks
; 2. A number (integer or floating-point numbers, such as: 0, 1, 34,-1, 33.55)
; 3. A PHP constant (such as: E_all, M_PI)
; 4. An INI constant (on, off, none)
; 5. An expression (e.g.: E_all & ~e_notice)
;
; INI file only uses: Bitwise operators, logical non, parentheses:
; | Bit or
; & Position and
; ~ Bit non
; ! Logical non
;
; The Boolean flag is opened with on, and off is closed.
;
; An empty string can be represented by an equal sign without writing anything, or with the None keyword:
; Foo =; Set Foo to an empty string
; foo = none; Set Foo to an empty string
; Foo = "None"; Set Foo to string ' None '
;
; If you use constants in a dynamic extension (PHP extension or Zend Extension) in the instruction value,
; Then you can use these constants only after loading these dynamically extended command lines.


;;;;;;;;;;;;;;;;;;
;; httpd.conf;;
;;;;;;;;;;;;;;;;;;
; You can override php.ini values for a specific virtual host or directory in httpd.conf for a more flexible configuration:
; Php_admin_value name value; set a non-BOOL directive and set value to none to clear previous settings
; Php_admin_flag name On|off; only instructions for setting the bool type
; [hint] These two are not recommended because many directives are not allowed to be set using Php_value/php_flag.
;
; PHP constants (such as E_all) can only be used in php.ini, and the corresponding mask values must be used in httpd.conf.

; [2008-3-2 Day UPDATE]
;==========================================================================================
;; ===================================== Configuration Instructions Detailed ========================================
;==========================================================================================
; The settings for each of the following instructions are the same as the default values built in PHP-5.2.5.
; In other words, if ' php.ini ' does not exist, or if you delete some rows, the default value is the same.

;;;;;;;;;;;;;;
;; Apache;;
;;;;;;;;;;;;;;
[Apache]
; Valid only when PHP is used as the Apache module.

Child_terminate = Off
; Whether the PHP script allows the apache_child_terminate () function to terminate the child process after the request is completed.
; This directive is available only when installing PHP as a Apache1.3 module on the UNIX platform. No other case exists.

Engine = On
; Whether to enable the PHP resolution engine.
; Tip: You can open or close the PHP parsing engine in httpd.conf based on a directory or a virtual host.

Last_modified = Off
; Whether to place the last modification time of the PHP script in the last-modified answer header.

Xbithack = Off
; Whether or not whatever the end of the file is, resolves it as a php executable bit group.


;;;;;;;;;;;;;;;
;; PHP core;;
;;;;;;;;;;;;;;;

[Php-core-datetime]
; The first four configuration options are currently available only for the date_sunrise () and Date_sunset () functions.

Date.default_latitude = 31.7667
; Default Latitude

Date.default_longitude = 35.2333
; Default longitude

Date.sunrise_zenith = 90.583333
; Default Sunrise Zenith

Date.sunset_zenith = 90.583333
; Default Sunset Zenith

Date.timezone =
; The default time zone for all date and time functions when the TZ environment variable is not set.
; Chinese mainland should use "PRC"
; The order of precedence for applying time zones is:
; 1. Time zone set by the Date_default_timezone_set () function (if set)
; 2. TZ environment variable (if not empty)
; 3. The value of the directive (if set)
; 4. PHP own speculation (if the operating system supports)
; 5. If none of the above is successful, use "UTC"


[Php-core-assert]

Assert.active = On
; Whether assert () assertion evaluation is enabled

Assert.bail = Off
; Whether to abort script execution when a failure assertion occurs

Assert.callback =
; callback function executed when a failure assertion occurs

Assert.quiet_eval = Off
; Whether to use a quiet evaluation (no error message is displayed, equivalent to error_reporting=0).
; If closed, the current error_reporting directive value is used when evaluating an assertion expression.

Assert.warning = On
; Whether a warning is issued for each failure assertion


[Php-core-safemode]
; Security mode is set up to address the security issues of shared servers.
; But trying to solve the problem in the PHP layer is structurally unreasonable,
; The correct approach should be to modify the Web server layer and the operating system layer.
; As a result, security mode is abolished in PHP6, and security protection based on Open_basedir is used.
; This part of the instruction has been completely deleted in the PHP6.

Safe_mode = Off
; Whether Safe mode is enabled.
; When opened, PHP checks to see if the owner of the current script is the same as the owner of the file being manipulated.
; The same action is allowed, but the action is rejected.

Safe_mode_gid = Off
; In Safe mode, the default is to make a UID comparison check when accessing files.
; In some cases, however, strict UID checks are not appropriate, and a loose GID check is sufficient.
; You can open this parameter if you want to relax it to just do a gid comparison.

Safe_mode_allowed_env_vars = "Php_"
; In safe mode, the user can only change the prefix list of environment variables (comma-delimited).
; Allowing users to set certain environment variables can cause potential security vulnerabilities.
; Note: If this parameter value is NULL, PHP will allow the user to change any environment variable!

Safe_mode_protected_env_vars = "Ld_library_path"
; In safe mode, the list of environment variables that the user cannot change (comma-delimited).
; These variables are protected even if the safe_mode_allowed_env_vars instruction is set to allow.

Safe_mode_exec_dir = "/usr/local/php/bin"
; In safe mode, only the executable program under that directory allows the execution of functions performed by the system program.
; These functions are: System, Escapeshellarg, Escapeshellcmd, exec, PassThru,
; Proc_close, Proc_get_status, Proc_nice, Proc_open, Proc_terminate, shell_exec

Safe_mode_include_dir =
; In Safe mode, the Uid/gid check is skipped when the group directory and the files under its subdirectories are included.
; In other words, if the value here is null, no uid/gid files are allowed to be included.
; The directory set here must already exist in the Include_path directive or be included with the full path.
; Multiple directories are separated by a colon (a semicolon under win).
; The specified limit is actually a prefix, not a directory name.
; That is to say, "/DIR/INCL" will allow access to "/dir/include" and "/dir/incls"
; If you want to control access in a specified directory, add a slash at the end.


[Php-core-safe]

Allow_url_fopen = On
; Whether to allow remote files to open

Allow_url_include = Off
; Whether to allow Include/require remote files.

Disable_classes =
; The directive accepts a comma-delimited list of class names to disable a particular class.

Disable_functions =
; The directive accepts a comma-delimited list of function names to disable specific functions.

ENABLE_DL = On
; Whether the DL () function is allowed. The DL () function is only available when installing PHP as an Apache module.
; Disabling the DL () function is primarily for security reasons because it bypasses the limitations of the OPEN_BASEDIR directive.
; The DL () function is always disabled in safe mode, regardless of how it is set here.
; The directive is removed in PHP6, which is equivalent to off.

expose_php = On
; Exposes the fact that PHP is installed on the server (plus its signature in the HTTP header).
; It does not have a direct security threat, but it makes the client aware that PHP is installed on the server.

Open_basedir =
; Restrict all files (including the file itself) that PHP allows to operate under this Group directory list.
; When a script attempts to open a file outside of a specified directory tree, it is rejected.
; All symbolic connections are parsed, so it is not possible to circumvent this limitation through symbolic connections.
; Special value '. ' Specifies that the directory where the script is stored will be treated as a base directory.
; But this is a bit risky because the script's working directory can easily be changed by ChDir ().
; For shared servers, it becomes useful to flexibly set up the directive for different virtual hosts or directories in httpd.conf.
; Separate directories in Windows with semicolons, separated by colons in Unix systems.
; As an Apache module, the Open_basedir path in the parent directory is automatically inherited.
; The specified limit is actually a prefix, not a directory name.
; That is to say, "/DIR/INCL" will allow access to "/dir/include" and "/dir/incls",
; If you want to control access in a specified directory, add a slash at the end.
; By default, all files are allowed to open.

Sql.safe_mode = Off
; Whether to use SQL security mode.
; If turned on, the database connection functions that specify default values will use these defaults instead of the supported parameters.
; For each different database connection function, its default values refer to the appropriate manual page.

[Php-core-error]

error_reporting = E_all & ~e_notice
; The error reporting level is a bit-field overlay, recommended for use with E_all | E_strict
; 1 E_error Fatal Run-time Error
; 2 e_warning Runtime Warning (non-fatal error)
; 4 E_parse Compile-time parse error
; 8 E_notice Runtime Reminders (often bugs or intentional)
; E_core_error fatal error during initialization during PHP startup
; E_core_warning warning during initialization of PHP (non-fatal error)
; E_compile_error compile-time fatal error
; 128 E_compile_warning Compile-time warning (non-fatal error)
; 256 e_user_error user-defined fatal error
; E_user_warning user-defined warning (non-fatal error)
; 1024 E_user_notice user-defined reminders (often bugs, possibly intentional)
; 2048 E_strict Coding Standardization Warning (recommended how to modify to forward compatible)
; 4096 E_recoverable_error is close to fatal run-time error and is treated as if not captured E_error
; 6143 e_all All errors except E_strict (8191 in PHP6, including all)
; You can also use 2147483647 (all bits 1) to open any errors that may occur now or in the future.

Track_errors = Off
; Whether to save the most recent error or warning message in the variable $php_errormsg.

Display_errors = On
; Whether to display the error message as part of the output.
; In the final release of the Web site, it is strongly recommended that you turn off this feature and use the error log instead (see below).
; Opening this feature on the final published Web site may expose some security information,
; For example, a file path on your Web service, a database plan, or other information.

Display_startup_errors = Off
; Whether to show PHP startup errors.
; Even if the display_errors instruction is turned on, turning off this parameter will not show PHP startup errors.
; It is recommended that you turn off this feature unless you have to use it for debugging.

Report_memleaks = On
; Whether to report a memory leak. This parameter only works in PHP, which is compiled in debug mode.
; and must include e_warning in the error_reporting directive

Report_zend_debug = On
; No documented documentation yet

Html_errors = On
; Whether to use HTML tags in error messages.
; Note: Do not use this feature on the published site!

Docref_root =; " http://localhost/phpmanual/"
Docref_ext =; ". html
; If the html_errors command is turned on, PHP will display a hyperlink on the error message.
; Link directly to a page that describes the error or the function that caused the error.
; You can download the PHP manual from Http://www.php.net/docs.php,
; and point the docref_root instructions to the URL directory of your local manual.
; You must also set the DOCREF_EXT directive to specify the file extension (must contain '. ').
; Note: Do not use this feature on the published site.

Error_prepend_string =; " <font color= #f00 > "
; The string to output before the error message
Error_append_string =; " </font> "
; String to output after error message

Xmlrpc_errors = Off
Xmlrpc_error_number = 0
; No document yet


[Php-core-logging]

Define_syslog_variables = Off
; Whether to define a variety of system log variables, such as: $LOG _pid, $LOG _cron, and so on.
; A good idea to turn it off to improve efficiency.
; You can call the Define_syslog_variables () function at run time to define these variables.

Error_log =
; The file to which the error log is logged. The file must be writable by the Web server user.
; Syslog representation is logged to the System log (event log under NT, UNIX syslog (3))
; If no value is set here, the error is logged to the Web server's error log.

Log_errors = Off
; Whether the error is logged in the log file, and where it is recorded depends on the error_log directive.
; It is highly recommended that you use logging errors instead of direct output at the end of your published Web site.
; This allows you both to know that there is a problem and not to expose sensitive information.

Log_errors_max_len = 1024
; Sets the maximum length of the error source associated with the error message that is attached to the error log.
; The values set here are valid for both the displayed and recorded errors as well as the $php_errormsg.
; Set to 0 to allow unlimited lengths.

Ignore_repeated_errors = Off
; Whether to ignore duplicate error messages when logging the error log.
; The error message must appear on the same line in the same file to be treated as duplicates.

Ignore_repeated_source = Off
; Whether duplicate error sources are ignored when repeating error messages are ignored.


[Php-core-mail]
; To make the Mail function available, PHP must be able to access the SendMail program at compile time.
; If you use other mail programs, such as QMail or postfix, make sure you use the appropriate SendMail packaging.
; PHP first searches for sendmail in the system's Path environment variable, and then searches in the following order:
; /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
; It is strongly recommended that SendMail be found in path.
; In addition, users who compile PHP must be able to access the SendMail program.

SMTP = "localhost"
; The host name or IP address of the SMTP server used to send messages in the mail () function. For Win32 only.

Smtp_port = 25
; The port number of the SMTP server. For Win32 only.

Sendmail_from =
; The e-mail address in the From: header used when sending the message. For Win32 only
; This option also sets the "Return-path:" header.

Sendmail_path = "-t-i"
; For UNIX only, but also for parameters (the default is ' sendmail-t-i ')
; The path to the SendMail program, usually "/usr/sbin/sendmail or/usr/lib/sendmail."
; The Configure script will try to find the program and set it to the default value, but if it fails, it can be set here.
; Systems that do not use sendmail should set this directive as an SendMail override (if any).
; For example, qmail users can typically be set to "/var/qmail/bin/sendmail" or "/var/qmail/bin/qmail-inject".
; Qmail-inject does not need any options to handle the message correctly.

Mail.force_extra_parameters =
; The added value of the mandatory parameter passed to the SendMail library as an additional parameter.
; These parameters always replace the 5th parameter of mail (), even in safe mode.


[Php-core-resourcelimit]

Default_socket_timeout = 60
; Default socket timeout (seconds)

Max_execution_time = 30
; Maximum allowable execution time (in seconds) per script, 0 means no limit.
; This parameter helps prevent poor scripts from endlessly consuming server resources.
; This directive only affects the running time of the script itself, any other time spent outside the script,
; such as the use of System ()/sleep () function, database query, file upload, etc., are not included.
; In Safe mode, you cannot use Ini_set () to change this setting at run time.

Memory_limit = 128M
; The maximum number of bytes of memory a script can request (use K and M as units).
; This helps prevent bad scripts from consuming all of the memory on the server.
; To be able to use this directive, you must use the "--enable-memory-limit" configuration option at compile time.
; If you want to remove the memory limit, you must set it to-1.
; When the directive is set, the Memory_get_usage () function becomes available.

Max_input_time =-1
; Each script resolves the maximum allowable time (in seconds) for input data (POST, get, upload).
; -1 means no limit.

Max_input_nesting_level = 64
; The maximum nesting depth of the input variable (no more explanation document)

Post_max_size = 8M
; Maximum byte length of the allowed post data. This setting also affects file uploads.
; If the post data exceeds the limit, then $_post and $_files will be empty.
; To upload a large file, the value must be greater than the value of the upload_max_filesize directive.
; If the memory limit is enabled, the value should be less than the value of the MEMORY_LIMIT directive.

Realpath_cache_size = 16K
; Specifies the buffer size of the Realpath (canonical absolute pathname) used by PHP.
; You should increase this value to improve performance on a system where PHP opens a large number of files.

Realpath_cache_ttl = 120
; The expiration date (in seconds) of the information in the Realpath buffer.
; For systems that rarely change files, you can increase the value to improve performance.


[Php-core-fileupload]

File_uploads = On
; Whether to allow HTTP file uploads.
; See Upload_max_filesize, Upload_tmp_dir, post_max_size directives

Upload_max_filesize = 2M
; Maximum size of files allowed to be uploaded.

Upload_tmp_dir =
; A temporary directory in which files are uploaded (must be a directory written by the PHP process user).
; If not specified, PHP uses the system default temp directory.


[Php-core-magicquotes]
; PHP6 removed the following instructions, equivalent to all off

MAGIC_QUOTES_GPC = Off
; Whether to use automatic string escape (' "\ NULL) for the entered Get/post/cookie data.
; The settings here will automatically affect the value of the $_gest $_post $_cookie array.
; If this instruction is opened at the same time as the magic_quotes_sybase instruction, only single quotes (') are escaped to ('),
; Other special characters will not be escaped, i.e. ("\ NULL" will remain as is!!)
; It is recommended that you turn off this attribute and use a custom filter function.

Magic_quotes_runtime = Off
; Whether to use automatic string escape (' "\ NULL) for data generated from external resources at run time.
; If this directive is turned on, most functions return data from external resources (databases, text files, and so on) will be escaped.
; For example: data obtained with SQL queries, data obtained using the EXEC () function, and so on
; If this instruction is opened at the same time as the magic_quotes_sybase instruction, only single quotes (') are escaped to ('),
; Other special characters will not be escaped, i.e. ("\ NULL" will remain as is!!)
; It is recommended that you turn off this feature and use custom filtering functions as appropriate.

Magic_quotes_sybase = Off
; Whether to use the Sybase form of automatic string escape (with ' representations ')


[Php-core-highlight]

highlight.bg = "#FFFFFF"
Highlight.comment = "#FF8000"
Highlight.default = "#0000BB"
highlight.html = "#000000"
Highlight.keyword = "#007700"
highlight.string = "#DD0000"
; Syntax highlighting mode color (typically used to display. Phps files).
; As long as it can be <font color=xxx> accepted things will be able to work properly.




mysql my.ini configuration file in Chinese details

Direct click link View http://www.111cn.net/database/mysql/52675.htm


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.