


load, which contain fragments that load particular modules, and files ending in. The directories contain two components: files ending in. mods-enabled/ and mods-available/: These directories define modules that can be optionally loaded.conf-available/ and conf-enabled/: These directories house configuration fragments that are unattached to the virtual host configurations files.
#UBUNTU APACHE IPTRACE FULL#
When Apache starts or reloads, it reads the configuration files and links from within the sites-enabled directory as it compiles a full configuration. This is enabled through linking to the sites-enabled directory, which stores activated virtual host configuration files. Configurations within this folder will establish which content gets served for which requests. sites-available/ and sites-enabled/: The sites-available directory contains virtual host file configurations.Be sure to check that this file is correct if you are configuring SSL. nf: This file is used to specify the ports that virtual hosts should listen on.This file will configure defaults and be the central point of access for the server to read configuration details. Almost all configuration can be done from within this file, although it is recommended to use separate, designated files for simplicity. nf: This is the main configuration file for the server.Here are some useful locations to be familiar with: There are a number of plaintext files and some subdirectories within this directory. sites-enabled mods-available nf magic mods-enabled conf-enabled conf-available Executing the following command will list all of the files within this folder: The Apache File HierarchyĪpache keeps its main configuration files within the /etc/apache2 folder.
#UBUNTU APACHE IPTRACE HOW TO#
You can learn how by following our How to Install the Apache Web Server on Ubuntu 20.04 tutorial or the How To Install the Apache Web Server on Debian 10 tutorial. Prerequisitesīefore you begin exploring your Apache configurations, you should have Apache installed on your server. This article will follow the Ubuntu/Debian layout of Apache files, which is different from how other distributions build the configuration hierarchy. This article will examine some general configuration files and the options that can be controlled within them.

Although there are many viable web servers that will serve your content, it is helpful to understand how Apache works because of its ubiquity. It is used to serve more than half of all active websites. Apache is one of the most popular web servers on the internet.
