About Ubuntu profile, strictly speaking Ubuntu Apache configuration file is/etc/apache2/apache2.conf,apache automatically read the configuration information of this file at startup. Some other configuration files, such as httpd.conf, are included through the include directive. These include lines can be found in apache2.conf:
/etc/apache2/mods-enabled/*
Combined with annotations, you can clearly see the general effect of each configuration file. Of course, you can put all the settings in apache2.conf or httpd.conf or any configuration file. This division of Apache2 is only a good habit.
One of the most important things to do after installing Apache is to know where the Web document root directory is, and for Ubuntu, the default is/var/www. How do you know that? There is no documentroot in apache2.conf, httpd.conf is empty, so it must be in other files. After searching, found in the/etc/apache2/sites-enabled/000-default, there is such content:
Namevirtualhost * <virtualhost *>/var/www/
Ubuntu14.04 configuration file apache2.conf