Apache translation, I am angry!

Source: Internet
Author: User
Tags format define definition contains include net win32 access
Apache #
# originally by Robert Msur on the NCSA based on the server configuration file.
#
# This is the main Apache server configuration file. It contains # to the server it's pointing
The configuration directive for the order. # For detailed information about seeing
<url:http://www.apache.org/docs/># instructions.
#
# Not simply really don't understand here read Instructions # What they do. They just make
For hints or hints here. If you are not sure of the # Consult the documentation online. You were
A warning.
#
# After this file is processed, the server will look for and process
# c:/website/apache/conf/srm.conf and then c:/website/apache/conf/access.conf
# unless you and resourceconfig overpowered these or # here's AccessConfig
Instructions.
#
# Configuration instructions are organized into 3 basic sections: # 1. Controlling the Apache server's exercise
The instructions are processed as a
# The whole ("Environment of the World").
# 2. The directive "PRIMARY" or "default" server that defines parameters,
# It responds to requests that are not processed by a virtual host.
# These directives also provide default values for settings
# all the virtual hosts.
# 3. The setting for the virtual host, which allows the network request to be sent to the
# different IP addresses or host names and have them processed by
# The same Apache server process.
#
# Configuration and log file name: If you are a controller for many specified file name # servers
File Start "/" (or Win32 for "drive:/") "), # The server will use the
The explicit path. If the filename does * not * start # with "/",
The value of the serverroot is attached to the front-so "Logs/foo.log" # and
The collection of ServerRoot to "/usr/local/apache" will be interpreted by # as
"/usr/local/apache/logs/foo.log" server.
#
# Note: Where the filename is specified, you must use the slash # instead of the backslash
Line (for example, "C:/apache" instead of "C:\apache"). # If a
A drive letter is omitted, and the drive # Apache.exe on it will be
Default use. You always supply, this is recommended # an explicit drive in the absolute path
Actuator letters, however, avoid # chaos.
#

### Festival 1: The Global Environment
#
# The instructions in this section affect the overall operation of Apache, # such as the number of concurrent requests
Word it can be processed or where it can find its configuration file.
#

#
# ServerType is inetd, or independent. INETD mode is only supported on the #
Unix platform.
#
Independent ServerType.

#
# ServerRoot: The # Configuration of the top server in the following directory tree, error, and
Record files are persisted.
#
# don't add a slash at the end of the directory path.
#
ServerRoot "c:/ Dot/apache "

#
# Pidfile: The server should record its process in its file # identification number when it
At startup.
#
Pidfile Logs/httpd.pid

#
# Scoreboardfile: The file used to store internal server process information. # no
All architectures require this. But if you do (because, you'll know # when you
When running Apache, this file will be created) then you * must * guarantee that #
Apache has no 2 prayers to share the same Ji-card file.
#
Scoreboardfile Yuan Mu/apache_status

#
# in a standard configuration, the server will handle httpd.conf, # srm.conf, and in
The access.conf of the order. The latter 2 files are now scattered empty, when
All instructions are recommended # for simplicity to be placed in a single file. Evaluation outside Cherish
# below is the built-in default. You can make the server ignore # These files are completely used next to
"/dev/null" (for Unix) or # "Nul" (for Win32) to
The parameters of the directive.
#
#ResourceConfig conf/srm.conf
#AccessConfig conf/access.conf

#
# timeout: Number of seconds previously received and sent timeout.
#
Timeout 300

#
# KeepAlive: Whether to allow persistent connections (more than # One request per connection).
Set to "Leave" undo.
#
KeepAlive is on.

#
# Maxkeepaliverequests: Maximum number of allowed requests # in a stick
The connection period. Set to 0 allow an unlimited number. # We you make this number high
Reccomend, for maximum performance.
#
Maxkeepaliverequests 100

#
# KeepAliveTimeout: Seconds digits wait for the next request from # on the same connection
The same customer.
#
KeepAliveTimeout 15

#
# Apache on the Win32 always creates a subprocess to process the request. If it dies,
Additional child processes are created automatically. Within the child # multiple threading processing arrives
The requested process. The 12 # Instruction controls the behavior of threads and processes.
#

#
# Maxrequestsperchild: The number of requests for each subprocess is # at the child's death to
Before, allowing for processing. The child will quit like this # As for then, after the extended use
Avoid the problem Apache (and maybe # it uses the library) leaky slot memory or its
IT resources. On most systems, this # is really not needed, but some (such as
Solaris) does have the famous leaky seam # in the library. For Win32, place this value in the
0 (Infinity) # unless you don't advise it that way.
#
Maxrequestsperchild 0

#
# The number of concurrent threads (i.e., requests) will be allowed by the server. # put this value under
Server response (more # Active requests immediately they are all more slowly being processed by the tool
and # You will allow the number of system resources that the server consumes.
#
Threadsperchild 50

#
# listen: Allows you to bind Apache to a specific IP address or # port, except by default.
See also <virtualhost># directives.
#
#Listen 3000
#Listen 12.34.56.78:80

#
# bindaddress: You can choose to support the virtual host with this option. This instruction # is used
To tell the server which IP address to listen to. It can also # contain ' * ', an IP place
Address, or a fully qualified Internet domain name. # See also <VirtualHost> and listen
Make.

#BindAddress *

#
# Dynamically shared objects (DSO) support
#
# You can use the function of a module created as a DSO you must put the corresponding
LoadModule "So line up in this location # in the order it was contained was they were
The _before_ that are actually available to use. # Please distribute for more in Apache 1.3
Read the file README. DSO # about the DSO mechanism and running details "Apache-l"
For the table already # built (statically connected and so always available) in your
The Apache module.
#
# Note: Modules are important in the order in which they are loaded. # don't change # without expert loyalty
Tell the order below.
#
#LoadModule Anon_auth_module
Modules/apachemoduleauthanon.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
Status_module Modules/apachemodulestatus.dll #LoadModule
Usertrack_module Modules/apachemoduleusertrack.dll

#
# Extendedstatus Controls whether Apache will produce a ' complete ' status # information
(Extendedstatus on) or on basic information (Extendedstatus #
Leave) When the processor is invoked for "server status". Default off.
#
#ExtendedStatus's on.

### Section 2: "Primary" server configuration
#
# in this section the instruction installation is used by the value "main" # server, which reacts to
is not processed by any request one #<virtualhost> defined. These values also provide the default
For # You can define any <VirtualHost> containers later in the file.
#
# All of these instructions can be found within the <VirtualHost> container, # in this case
These defaults will be subdued to # The virtual host is being defined.
#

#
# If your servertype directive (earlier in the "Global Environment" SET # section)
is set to "inetd", the next little instruction is not anything # ever since they
The effect of the setting is inetd configuration definition. # Skip forward to ServerAdmin instruction.
#

#
# port: A stand-alone server hears its port.
#
Port 80

#
# ServerAdmin: Your address, there is a server problem should be sent in this # e-mail
Thing This address appears on some pages that generate the service, so # when the error is recorded.
#
ServerAdmin you@your.address

#
# ServerName allows you to make a host name which is sent back to the customer as # your
It is different than a program that will get the server (ie, use # "www" and
Not the real name of the host).
#
# Note: You can't just invent the host name and the hope of their work. Name you # define
This must have a valid DNS name for your host. If you don't understand # this, ask you
's network manager.
# If your host does not have a registered DNS name, here goes to its IP address.
# you will have to access it by its address (for example, http://123.45.67.89/) #
Anyway, and it will be in a sensible way to make redirects work.

ServerName HTTP://127.0.0.1/

#
# DocumentRoot: You will be provided from the directory of your # file. By default, all
Requests are taken from this directory, but the # symbolic connection and alias can be used to point to
The other place.
#
DocumentRoot "c:/ Outlets

#
# have access to this Apache each directory, can and aspects are set # to which service
and characteristics on that are permitted or crippled # directory (and its subdirectories).
#
# First, we set ' default ' is a very limited set # Allow.
#
<directory/>
Select FollowSymLinks
AllowOverride No.
</Directory>

#
# forward from this point you must specifically say that the allowed notes # are enabled special characteristics
-So if something doesn't work as # You may expect to ensure that you specifically
It's enabled # underneath.
#

#
# This should be changed to the way you put documentroot into whatever.
#
<directory "c:/ Dot/apache/htdocs ">

#
# This can also be ' no ', ' index ' of ' all ', or any union, # '
including "," FollowSymLinks "," execcgi ", or" multiviews
”。
#
# Note that "MultiViews" must be named * explicitly *---"Select all" #
Don't give it to you.
#
Select Index FollowSymLinks multiviews

#
# This controls which selection in the directory can of the. htaccess file # Uniform. can also "
Select "All", or any union, "FileInfo", # "
Authconfig ", and" limit "
#
AllowOverride No.

#
# The control that can be gained is filled from this server.
#
Order permitting, denying
From all allowed
</Directory>

#
# Userdir: The name of the directory added to a user's home # directory if
A ~ user request was received.
#
# Underneath the Win32, we don't really try to decide the home directory # Windows Login,
For example the format of that should be used below. See # For details of the Userdir document.
#
Userdir "c:/ Dot/apache/User/"

#
# DirectoryIndex: File or file name as a written HTML before use #
The directory index. Separate multiple entrances with spaces.
#
DirectoryIndex index.html index.php index.php3
Index.phtml

#
# Accessfilename: The name of the file looking for in each directory # for access control letters
Interest.
#
Accessfilename. htaccess

#
# The following line blocks the. htaccess file is seen by the # NET customer. Ever since. htaccess
Files often contain authorization # information, which is denied for security reasons. Comment # These are like
If you want the net guest to see the content, outside line up the #. htaccess file. If you're on
Face change Accessfilename instruction, # definitely make the corresponding change here.
#
<files .htaccess>
Order permitting, denying
From all denials
</Files>

#
# Cachenegotiateddocs: By default, Apache sends "PRAGMA: no Slow
Save "with each # on the content basis of the negotiated documents. This ask agent # no buffer
The server for this file. The following lines deactivate the Uncommenting # This behavior, and substituting
Rationale will be allowed to buffer files.
#
#CacheNegotiatedDocs

#
# Usecanonicalname: (new 1.3) With this setting turned on, no matter what
When # Apache needs to construct a
Reference self URL (reference back
Come to a URL # to the server
Reaction is coming from) it will make
With ServerName and #
To form a "regular" name.
The port. With this departure,
Apache Wish # Use Customer
The hostname:port supplied.
, when possible. This
Also in the CGI handwriting influence
server_name and
Server_port.
#
Usecanonicalname is on.

#
# Typesconfig describes where Mime.types file (or equivalent) is # being
Found.
#
Typesconfig Conf/mime.types

#
# DefaultType is the default MIME type that the server will use in a file # like
It cannot be decided by one, for example, from the filename extension. # If your server owner
To include, an article or an HTML record, "Normal text" is a # good value. If your inner
Most of the capacity is binary, such as application # or image, you can instead want to
Use "Request/octet-stream" to # to prevent browsers from trying to display binary text
Pieces as if they were # articles.
#
DefaultType Plain Text

#
# module allows the server to use a variety of mod_mime_magic hints from #
Decide its type of file for its own content. Mimemagicfile # Instructions to tell the module
Hint where the definition is positioned. # Mod_mime_magic is not part of the default server
(One must add # it yourself with one LoadModule [see DSO section in "All
Ball # Environment ' section], or, so it is encapsulated in a <IfModule> container.
# If the mimemagicfile instruction will only be processed by this tool # module is a costume
Part of the service.
#
<ifmodule mod_mime_magic.c>
Mimemagicfile conf/Magic
</IfModule>

#
# hostnamelookups: Record the name of the customer or just their IP address
# For example, www.apache.org (on) or 204.62.129.132 (left).
# because if it's going to be better for the network, the default # # has to
Knowingly open this feature, since enabled, it means that # each customer request will guide
To at least one lookup request to the # name server.
#
Hostnamelookups leave

#
# ErrorLog: The location of the error log file.
# If you don't specify a ErrorLog command # within <VirtualHost> # allow
, the error message to connect to that virtual host will be # recorded here. If you
* * For a <VirtualHost> define an error log file # container, that host
The error is to be documented here and not.
#
ErrorLog Logs/error.log

#
# LogLevel: Controls the number of messages that are recorded to Error.log. # It's possible.
Values include: debugging, information, notification, warning, error, crit, # Alert, Emerg.
#
LogLevel Warning

#
# The following instructions are used to define some format nicknames with # a customlog instruction (
See below).
#
Logformat "%h%l%u%t \%r\"%>s%b \ "%{referer}i\" \ "%{user-agent}i\" "combined
Logformat "% h% l% u% t \"%r\ "%> s% B" normal
Logformat "%{Referer} i->% U" Referer
Logformat "%{User agent} i" Agent

#
# access the location and format of the log files (normal log file format). # If you
Do not define any access log file # containers within a <VirtualHost>, they will
Here is recorded. Conversely, if you **# define every--<virtualhost> access day
Log file, the transaction will be # where it is recorded and * not * in this file.
#
The ordinary Customlog Logs/access.log

#
# If you want to have proxies and referer log files, uncomment # Follow the instructions.
#
#CustomLog Logs/referer.log Referer
#CustomLog Logs/agent.log Agent

#
# If you prefer a single log file with access, the agent, and
Referer Information # (Federated log file format) You can use the following instructions.
#
#CustomLog Logs/access.log Union.

#
# selectively increase the number of rows that contain the server version and the virtual host to the generating service
The name of the page (Error record, FTP directory directory, # Mod_status and Mod_info
And so on output, however not CGI produced the file. # to "e-mail" to the
The collection also includes a mailto: connection to ServerAdmin. # set to one: in
On | leave | email
#
Serversignature is on.

#
# alias: Add as many aliases (no limits) as you need. Format is
# alias Fakename Realname
#
# If you include a walk, notice it/on the fakename then the server wishes # to
Ask it to be present at the URL. So "/icons" is not an example of aliased in this,
Just "/icons/" ...
#
alias/icons/"c:/website/apache/icons/"

#
# Scriptalias: Which directory contains this control of the script for the server. #
Scriptaliases is essentially the same as alias, except that # in the Realname directory
Files are treated as applications and # when requests are not sent to the customer as files, by
Server running. # The same rules about walking '/' Apply to Scriptalias finger
Order as to # alias.
#
scriptalias/cgi-bin/"c:/website/apache/cgi-bin/"

#
# "c:/ Dot/apache/cgi-bin "should be changed to whatever your
scriptaliased # CGI Directory exists, if you put that set.
#
<directory "c:/ Dot/apache/cgi-bin "> AllowOverride No
Choose not
</Directory>

#
# REDIRECT allows you to tell customers about the files that used to exist in your server
namespace, but don't do it anymore. This allows you to tell # where customers are looking for relocation
of the file.
# format: Redirect Old-uri New-url
#



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.