Reprinted comments of the httpd. conf file of ApacheServer

Source: Internet
Author: User

The reference here is Apache Server1_3_12_win32. ServerType standalone # Set whether the server is started independently (standalone) or by the inetd of the interconnected network servo program. The former is generally used. ServerRoot "d:/Apache" # Set the Home Directory of the server to store the server's setting files, error files, and record files. PidFile logs/httpd. pid # When the program starts, the process id of the parent process httpd is stored in this file. The file name can be changed with the PidFile command. ScoreBoardFile logs/apache_status # Set the record files of some program execution 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 sent 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 * # Set Apache to listen to all IP addresses, which can also be specified. # 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 Server Manager's e-mail address. # 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. Specific description: 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 # defines the first file to be displayed. AccessFileName. htaccess # defines the name of each directory access control file. # CacheNegotiatedDocs defines that the proxy server does not Cache your page. It is not recommended. UseCanonicalName On # The server uses the server name and Port address specified by ServerName. 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.