Apache Server Configuration Tutorial (1/5)

Source: Internet
Author: User
Tags port number

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

Homepage 1 2 3 4 5 Last page

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.