Apache HTTP latest official configuration (Chinese translation [3])

xiaoxiao2021-03-06  38

Upload [2]

All of these instructions will appear in the container, which will be overwritten when defining Virtual Host.

#

#

# ServerAdmin: Your Address, WHERE Problems with the Server Should Be

# e-mailed. This Address Appears ON Some Server-Generated Pages, Such

# as error documents. E.G. Admin@your-domain.com

# ServerAdmin: Your address, you can send you email when you fail. This address appears on the page generated by the server, such as a failed document. For example: admin@your-domain.com

ServerAdmin Webmaster@moers.com

#

# ServerName Gives The name and port what the server buy odentify itself.

# This can offen be determined Automatic or But We Recommend you specify

# IT Explicitly to Prevent Problems During Startup.

#Servernaem defines the Server name and port number to indicate your identity. It can usually be automatically defined, it is recommended to explicitly define it, avoid startup

# I i ly for your host, server-generate

# Redirections Will Not Work. See Also The UseCanonicalName Directive.

# If you do not correctly define the host's DNS, the redirection generated by the server will not work, and refer to the UsecanonicalName instruction.

# I i i i '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ''.

# You will have to access it by its address anyway, and this will make

# Redirections Work in a Sensible Way.

# If you don't register your DNS name, enter the IP address here.

You can use the IP address in any case, which is also used to redirect becomes sensitive.

Servername www.moers.com:80

#

# Usecanonicalname: Determines How apache constructs self-referencing

# Urls and the server_name and server_port variables.

#Hen set "OFF", Apache Will Use the Hostname and Port Suppl

# by the client .when set "on", apache will use the value of the

# ServerName Directive.

# Usecanonicalname: Decide how apaceh builds a custom reference URL, and Server_Name and Server_Port variables

When set to OFF, Apache will use the domain name and port given by the client. When set to ON, Apache will use the ServerName instruction.

Usecanonicalname OFF

#

# DocumentRoot: The Directory Out of Which You Will Serve Your # Documents. By Default, All Requests Are Taken from this Directory, But

# symbolic links and aliases may be used to point to other locations.

#Documentroot: The server document placement directory. In the default case, all requests start from here, except for marks and alias, it will refer to it.

DocumentRoot "C: / Program Files / Apache Group / Apache2 / HTDOCS"

#

# Each Directory to Which Apache Has Access Can Be Configured with respect

# to which services and features area allowed and / or disk in That

# Directory (AND ITS Subdirectories).

# Each directory available to Apache can be configured to allow or prohibit which services and features (including their subdirectory)

# First, we configure the "default" to be a very restrictive set of

# Features.

# First, we define a very stringent configuration of a default

Options Followsymlinks

ALLOWOVERRIDE NONE

#

# Note That from this Point Forward You Must Specification Allow

# particular features to be enabled - SO if Something's not working as

# You might expect, make sure that you have specification enabled it

# Below.

# Note that from this point, you must license some special features, so if some features have not been as you wish, make sure you have this feature in the following.

#

# This kind be changing to whatver you set documentroot to.

# This will change your settings to DocumentRoot

#

# Possible Values ​​for the Options Directive Are "None", "all",

# combination of:

Possible values ​​are NONE, ALL, or any combination

# 中d es inclus Followsymlinks Symlinksifownermatch Execcgi MultiViews

# 索 包括 包括 包括 包括 s e s s mk

# Note That "MultiViews" Must Be named * explicitly * --- "Options all"

# doesn't give it to you.

# Note MultiViews is explicitly Options all,

# The Options Directive Is Both Complicated and Important. Please see # http://httpd.apache.org/docs-2.0/mod/core.html#options

# for more information.

# Option instructions are both complex and important, see http://httpd.apache.org/docs-2.0/mod/core.html#options to learn more

Options Indexes FollowSymlinks

#

# Allowoverride Controls What Directives May Be Placed In .htaccess Files.

# It can be "all", "none", or any combination of the keywords:

# Options fileInfo authconfig limited

#Allowoverride controls what instructions can be added to .htaccess, you can be all, none, or combination keyword

ALLOWOVERRIDE NONE

#

# Controls Who Can Get Stuff from this Server.

# 控制 控制 可以 此 此

ORDER ALOW, DENY

ALLOW FROM ALL

#

# Userdir: The name of the directory That Is Abted ONTO A User's Home

# Directory if A ~ User Request Is Received. Be Especially Careful To Use

# prot, forward slashes here. on Windows NT, "Personal / My Website"

# is a more appropriate kice.

# Userdir: The name of the user's HOME, when receiving the request to ~ User's request.

Please use "/" correctly. On Winnt, "Personal / My Website" is a better choice

Userdir "My Documents / My Website"

#

# Control Access To UserDir Directories. The Following IS An Example

# for a site where these directories are restricted to read-only.

# Control the userdir directory, the following is an example, this directory is read-only

# YourRect The Path for the root to match your system's configured

# User Directory Location, E.g. "C: / WinNT / Profiles / * / My Documents / My Website"

# or for whichever, as approprise.

# You must correct the root directory, match the system settings, such as the user directory is C: / Winnt / Profiles / * / my documents / my website or other suitable

#

# Allowoverride fileinfo authconfig limited

# Options MultiViews Indexes Symlinksifownermatch IncludeSnoexec #

# Order allow, deny

# Allow from all

#

#

# Order deny, allow

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

New Post(0)