The Apache web server requires a few configuration files to operate. When you select to install the LAMP server from the Ubuntu server installation menu, the installation process installs the Apache web server package, including preconfigured Apache files, to create a basic web server environment.
All of the Apache web server configuration files are located in the /etc/apache2 folder. They include the following files and folders:
♦ apache2.conf: the main Apache web server configuration file that the Apache web server reads
♦ conf.d: a folder containing files that have specific configuration features included in the Apache configuration (by default, Ubuntu creates configurations to define the character set of the server and set the security level of the server)
♦ envvars: a configuration file to set specific environment variables for the Apache web server
♦ httpd.conf: a configuration file for adding local configuration customizations
♦ mods-available: a folder that contains the configuration settings for modules available for the server
♦ mods-enabled: a folder containing links to the enabled configuration settings stored in the mods-available folder.
♦ ports.conf: a configuration file that specifies which TCP ports the Apache web server should listen on
♦ sites-available: a folder containing available site definitions for virtual hosts
♦ sites-enabled: a folder containing links to the active site definition files in the sites-available folder
The /etc/apache2/apache2.conf file is the main configuration file that the Apache web server processes. This file references the individual configuration files for specific configuration features, such as the TCP ports used and the virtual hosts to create.
Was this article helpful?