Basic Apache configuration for Ubuntu servers

Source: Internet
Author: User
The Apache main configuration file officially released by the Apache basic configuration file of the Ubuntu network application server is httpd. conf. The server also reads a file that contains the MIME file type. The file name is determined by the TypesConfig command. The default value is mime. types. The main configuration file of Apache in Ubuntu/Debian is/etc/apache2/apache2.conf, which contains MIME

Ubuntu Network Application Server Apache configuration Basics

Configuration File

The main configuration file of Apache officially released is httpd. conf. The server will also read a file containing the MIME file type, and its file name is determined by the TypesConfig command. The default value is mime. types.

The main configuration file of Apache in Ubuntu/Debian is/etc/apache2/apache2.conf, and the file containing the MIME file type is/etc/mime. types.

In addition, to split the configuration by logic, you can use the Include command and wildcard to append many other configuration files. The following configuration file is attached to Ubuntu:

# Configurations that contain dynamic modules:

Include/etc/apache2/mod-enabled/*. load

Include/etc/apache2/mod-enabled/*. conf

# Include your own configurations:

Include/etc/apache2/httpd. conf

# Configurations that contain port listening:

Include/etc/apache2/ports. conf

# Contains a general configuration statement segment:

Include/etc/apache2/conf. d/[^. #] *

......

# Configuration commands containing virtual hosts:

Include/etc/apache2/sites-enabled/[^. #] *

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.