Servertype Standalone
# Setting the server in the form of a STANDALONE, or is started by the Internet Servo OpenTD. Generally use the former.
Serverroot "/ usr / local / apache" sets the home directory of the server to store the server's setup file, error file, and record files.
When the pidfile logs / httpd.pid # program starts, the process number of the parent process httpd exists in this file. This file name can be changed with the PIDFile instruction.
ScoreboardFile logs / apache_status # Sets the log file for some execution programs 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 is still not connected, or the server is not transferred to the client in 300 seconds, it will automatically disconnect.
Keepalive ON # Set whether to support the transmission function.
MaxkeepAliveRequests 100 # Set the number of support for the transmission. The more the number is wasting the hard disk space. Set to 0 is not continuous.
KeepaliveTimeout 15 # If it is not requested to send a request to the server after 15 seconds, he cannot renew.
MaxRequestSperchild 0 # sets the number of Child Process in the same time.
ThreadsperChild 50 # Set the number of servers using the process.
#Listen 3000 #Listen 12.34.56.78:80 # Allows other ports or IP access servers. In this case, Port is 3000, IP is 12.34.56.78:80.
#Bindaddress * # Set Apache to listen to all IP or specifically specified.
#LoadModule Anon_Auth_Module Modules / ApachemoduleAuthanon.dll ... # Open the module that is currently not activated.
#ExtendedStatus ON # Set status information generated by the server.
Port 80 # Sets the port used by the server.
ServerAdmin You@your.address # Sets the E-mail address of the server manager.
#Servername new.host.name # The host name of the server. If you have a fixed IP address, you don't need to set it.
Documentroot "/ usr / local / apache / htdocs" # sets the directory of the stored site HTML file.
UserDir public_html # Defines the user to store the directory of the HTML file.
DirectoryIndex Index.html # defines the first displayed file. AccessFileName .htaccess # Defines the name of each directory access control file.
#CachenegotiatedDoCS Define Proxy Server Don't Cache Your page. Not recommended for use.
The usecanonicalname on # server uses the server name specified by ServerName and the port address specified by the Port.