The Apache configuration directory. All of the Apache configuration files reside here.
- /etc/apache2/apache2.conf:
the main configuration file for Apache. To update the global configuration of Apache, modify this. Numerous other files in the configuration directory are loaded by this file.
The ports that Apache will listen on are listed in this file. When a module with SSL capabilities is activated, Apache also listens on port 443 in addition to port 80 by default.
- /etc/apache2/sites-available/:
the directory that can house virtual hosts specific to each site. The configuration files in this directory must be linked to the sites-enabled directory in order for Apache to use them. Typically, all server block configuration is completed in this directory, and the other directory is linked with the a2ensite command to enable it.
- /etc/apache2/sites-enabled/:
the directory that contains activated per-site virtual hosts. These are often made by using the a2ensite to connect to configuration files located in the sites-available directory. When Apache begins or reloads, it examines the configuration files and links located in this directory to create a complete configuration.
- /etc/apache2/conf-available/, /etc/apache2/conf-enabled/:
Directories are used to store configuration fragments that do not belong on a virtual host, but they share the same relationship as the sites-available and sites-enabled directories. Using the a2enconf and a2disconf commands, you can enable and disable files in the conf-available directory.
- /etc/apache2/mods-available/, /etc/apache2/mods-enabled/:
The available and enabled modules are correspondingly contained in these folders. Specific module loading fragments are found in files with the.load extension, and their configuration is found in files with the.conf extension. The a2enmod and a2dismod commands can be used to enable and disable modules, respectively.g