a2enconf
Enable Apache configuration files
TLDR
Enable a configuration file
Don't show informative messages
SYNOPSIS
a2enconf confname
PARAMETERS
confname
The name of the configuration file (without the .conf
extension) located in the conf-available
directory.
DESCRIPTION
The a2enconf
command is a utility used to enable Apache configuration files. It creates symbolic links in the Apache configuration directories (usually /etc/apache2/conf-enabled/
) to the corresponding configuration files in the conf-available
directory (usually /etc/apache2/conf-available/
). This effectively activates the configurations, making them part of the Apache web server's active configuration. The command simplifies the process of managing Apache configurations by providing a standardized way to enable and disable them without directly modifying the primary Apache configuration file.
Before the conf files can be enabled, they have to be copied in the conf-available folder or linked with it.
It is part of the apache2 package.
EXAMPLE
To enable the configuration file named myconfig.conf
, the command would be:a2enconf myconfig
This creates a symbolic link from /etc/apache2/conf-enabled/myconfig.conf
to /etc/apache2/conf-available/myconfig.conf
.