Reprinted: comments to the httpd. conf file of ApacheServer

Source: Internet
Author: User
Here we refer to ApacheServer1_3_12_win32. ServerTypestandalone # set whether the server is started independently (standalone) or by the inetd of the interconnected network servo program. The former is generally used. ServerRootd: Apache # sets the Home directory of the server to store the server's setting files, error files, and record files. Apache

The reference here is Apache Server1_3_12_win32.

ServerType standalone
# Set the server to standalone or inetd. The former is generally used.

ServerRoot "d:/Apache"
# Set the Home directory of the server to store the setting files, error files, and record files of the server.

PidFile logs/httpd. pid
# Store the httpd process id of the parent process in this file when the program starts. The file name can be changed with the PidFile command.

ScoreBoardFile logs/apache_status
# Set the record files of some execution programs on the WWW server on the network.

# ResourceConfig conf/srm. conf
# AccessConfig conf/access. conf
# The content of these two files is already included in the httpd. conf file.

Timeout 300
# If the client has not been connected for 300 seconds, or the server has not transferred data to the client for 300 seconds, it will be automatically disconnected.

KeepAlive On
# Set whether to support continuous data transfer.

MaxKeepAliveRequests 100
# Set the number of support for continuous data transfer. More disk space is wasted. If the value is set to 0, data is not transmitted continuously.

KeepAliveTimeout 15
# If the user does not send a request to the server after 15 seconds, the user cannot resume the transfer.

MaxRequestsPerChild 0
# Set the number of child processes in the same time.

ThreadsPerChild 50
# Set the number of processes used by the server.

# Listen 3000.
# Listen 12.34.56.78: 80
# Allow other ports or IP addresses to access the server. In this example, Port is 3000 and IP is 12.34.56.78: 80.

# BindAddress *
# You can specify the IP addresses that Apache listens.

# LoadModule anon_auth_module modules/ApacheModuleAuthAnon. dll
......
# Open the pre-activated module.

# ExtendedStatus On
# Set the status information generated by the server.


The reference here is Apache Server1_3_12_win32.

Port 80
# Set the Port used by the server.

ServerAdmin you@your.address
# Set the email address of the server manager.

# ServerName new. host. name
# Server host name. If you have a fixed IP address, you do not need to set it.

DocumentRoot "d:/Apache/htdocs"
# Set the directory for storing html files of the website.


Options FollowSymLinks
AllowOverride None

# Set/directory commands. Details:
Option: defines the operations that can be performed in the directory. None indicates that only browsing is allowed. FollowSymLinks allows the page to be connected elsewhere. ExecCGI allows CGI and MultiViews allows operations such as watching animations or listening to music. Indexes allows the server to return to the directory formatting list, while Des allows SSI. You can check these settings. All can do anything, but does not include MultiViews.
AllowOverride: adding the None parameter indicates that anyone can browse the files in this directory. Other parameters include FileInfo, AuthConfig, and Limit.

UserDir "d:/Apache/users /"
# Define the directory where the user stores html files.

DirectoryIndex index.html
# Define the first file to be displayed.

AccessFileName. htaccess
# Define the name of each directory access control file.

# CacheNegotiatedDocs
Define the proxy server not to Cache your page. It is not recommended.

UseCanonicalName On
# The Server uses the server name specified by ServerName and the Port address specified by Port.

Original Author: Pawn
Source: pawn world wide web

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.