About the location of the Ubuntu configuration file apache2 httpd. conf

Source: Internet
Author: User

For the Ubuntu configuration file apache2 httpd. conf location, for the ubuntu configuration file, we should strictly describe Apache of Ubuntu (or should we say Apache under Linux? The configuration file of other apache software packages is/etc/apache2/apache2.conf. Apache automatically reads the configuration information of this file at startup. Some other configuration files, such as httpd. conf, are included through the Include command. In apache2.conf, you can find these Include rows: Reference # Include module configuration: Include/etc/apache2/mod-enabled /*. load Include/etc/apache2/mod-enabled /*. conf # Include all the user invocations: Include/etc/apache2/httpd. conf # Include ports listing Include/etc/apache2/ports. conf ...... # Include generic snippets of statements Include/etc/apache2/conf. d/# Include the virtual host configurations: Include/etc/apache2/sites-enabled/with comments, you can clearly see the general role of each configuration file. Of course, you can put all the settings in apache2.conf, httpd. conf, or any configuration file. This classification of Apache2 is just a good habit. The most important thing after installing Apache is to know where the Web document root directory is. For Ubuntu, the default value is/var/www. How do you know? There is no DocumentRoot entry in apache2.conf, and httpd. conf is empty, so it must be in other files. After searching, it is found that the content in/etc/apache2/sites-enabled/000-default contains the following content: reference NameVirtualHost * <VirtualHost *> ServerAdmin webmaster @ localhost DocumentRoot/var/www/

Related Article

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.