Detailed description of httpd. conf files in Apache

Source: Internet
Author: User
Tags http request

# You can use the absolute path e: webapache
# Serverroot is used to specify the httpd running Directory of the Daemon. After httpd is started, it automatically changes the current directory of the process to this directory, therefore, if the specified file or directory is a relative path, the actual path is located under the path defined by serverroot.
Pidfile logs/httpd. pid
# The Process Number of the httpd daemon is recorded in the file specified by pidfile. Because httpd can automatically copy itself, there are multiple httpd processes in the system, but only one process is the process initially started, it is the parent process of other processes. Sending signals to this process affects all httpd processes. The process number of the httpd parent process is recorded in the file defined by pidfile.
Timeout 300
# Timeout defines the timeout interval between the client program and the server. After the timeout interval (in seconds) is exceeded, the server will be disconnected from the client.
Keepalive on
# In http 1.0, only one http request can be transmitted over one connection, while the keepalive parameter is used to support one connection and multiple transmission functions in http 1.1, in this way, multiple http requests can be transmitted in a connection. Although this function is only supported by newer browsers, this option is still enabled.
Maxkeepaliverequests 100
# Maxkeepaliverequests is the maximum number of http requests that a connection can perform. Setting this value to 0 will allow unlimited transmission requests in one connection. In fact, no client program requests too many pages in a single connection. Generally, the connection is completed if this limit is not reached.
Keepalivetimeout 15
# Keepalivetimeout: Test the time between multiple requests in a connection. If the server has completed a request but has never received the next request from the client program, after the interval exceeds the value set by this parameter, the server will be disconnected.
& Lt; ifmodule mpm_winnt.c>
Threadsperchild 250
Maxrequestsperchild 0
& Lt;/ifmodule>
Listen 80
# Port, boot module. Many of the following modules are only available in liunx
Loadmodule access_module modules/mod_access.so
Loadmodule actions_module modules/mod_actions.so
Loadmodule alias_module modules/mod_alias.so
Loadmodule asis_module modules/mod_asis.so
Loadmodule auth_module modules/mod_auth.so
Loadmodule dir_module modules/mod_dir.so
Loadmodule cgi_module modules/mod_cgi.so
Loadmodule mime_module modules/mod_mime.so
Loadmodule log_config_module modules/mod_log_config.so
Loadmodule autoindex_module modules/mod_autoindex.so
Loadmodule negotiation_module modules/mod_negotiation.so
Loadmodule setenvif_module modules/mod_setenvif.so
# Loadmodule cern_meta_module modules/mod_cern_meta.so
# Loadmodule env_module modules/mod_env.so
# Loadmodule expires_module modules/mod_expires.so
# Loadmodule file_cache_module modules/mod_file_cache.so
# Loadmodule headers_module modules/mod_headers.so
# Loadmodule imap_module modules/mod_imap.so
# Loadmodule auth_anon_module modules/mod_auth_anon.so
# Loadmodule auth_dbm_module modules/mod_auth_dbm.so
# Loadmodule auth_digest_module modules/mod_auth_digest.so
# Loadmodule dav_module modules/mod_dav.so
# Loadmodule dav_fs_module modules/mod_dav_fs.so
# Loadmodule include_module modules/mod_include.so
# Loadmodule info_module modules/mod_info.so
# Loadmodule isapi_module modules/mod_isapi.so
# Loadmodule mime_magic_module modules/mod_mime_magic.so
# Loadmodule proxy_module modules/mod_proxy.so
# Loadmodule proxy_connect_module modules/mod_proxy_connect.so
# Loadmodule proxy_http_module modules/mod_proxy_http.so
# Loadmodule proxy_ftp_module modules/mod_proxy_ftp.so
# Loadmodule speling_module modules/mod_speling.so
# Loadmodule status_module modules/mod_status.so
# Loadmodule unique_id_module modules/mod_unique_id.so
# Loadmodule usertrack_module modules/mod_usertrack.so
# Loadmodule ssl_module modules/mod_ssl.so
# Loadmodule vhost_alias_module modules/mod_vhost_alias.so
# Loadmodule userdir_module modules/mod_userdir.so
Loadmodule rewrite_module modules/mod_rewrite.so
# Extendedstatus on
Serveradmin abc@123.com
# Server administrator email, displayed in the error, probe
Servername localhost.domain.com
Usecanonicalname off
# Whether to allow reverse query of the dns domain name of each visitor
Documentroot/apache
# Directory of the webpage. This is very important.
# You have set e: web is a directory, and web is set e: webtwo on the VM.
# If the program can still run but is not in documentroot, the program will have an error
& Lt; directory/>
Options followsymlinks multiviews execcgi
Allowoverride none
& Lt;/directory>
& Lt; directory/apache/>
Options followsymlinks multiviews execcgi
Allowoverride none
Order allow, deny
Php_admin_value open_basedir/apache/
Allow from all
& Lt;/directory>

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.