Configuration of the primary site (basic configuration)
(1) basic configuration:
Serverroot "/mnt/software/apache2" # location of your apache software installation. If no absolute path is specified for other specified directories, the directory is relative to this directory.
Pidfile logs/httpd. pid # The location of the process number file of the first httpd process (parent process of all other processes.
Listen 80 # port number of the server listener.
Servername www.111cn.net: 80 # Main site name (website host name ).
Serveradmin admin@111cn.net # administrator email address.
Documentroot "/mnt/web/clusting" # webpage storage location of the primary site.
Access control for the Directory of the main site is as follows:
<Directory "/mnt/web/clusting">
Options followsymlinks
Allowoverride none
Order allow, deny
Allow from all
</Directory>
The preceding directory attribute configuration mainly includes the following options:
Options: what features are used for configuration in a specific directory? Common values and basic meanings are as follows:
Execcgi: execute cgi scripts in this directory.
Followsymlinks: in this directory, the file system is allowed to use symbols to connect.
Indexes: if the user cannot find the main page file specified by directoryindex(for example, index.html), the list of files in the directory is returned to the user.
Symlinksifownermatch: a symbolic connection is accessible only when the owner of the symbolic connection is the same as the owner of the actual file.
For other available values and meanings, see: http://www.111cn.net/apache/apachemanual/mod/core.html#options