Linux "a2disconf" Command Line Options and Examples
enable or disable an apache2 configuration file

This manual page documents briefly the a2enconf and a2disconf commands. a2enconf is a script that enables the specified configuration file within the apache2 configuration. It does this by creating sym‐ links within /etc/apache2/conf-enabled.


Usage:

a2enconf [ [-q|--quiet] configuration]


    a2disconf [ [-q|--quiet] configuration]






Command Line Options:

-q
Don't show informative messages.
a2disconf -q ...
-m
Enables the maintainer mode, that is the program invocation is effectuated automatically by a maintainer script. This switchshould not be used by end users.
a2disconf -m ...
-p
When disabling a module, purge all traces of the module in the internal state data base.EXIT STATUSa2enconf and a2disconf exit with status 0 if all configurations are processed successfully, 1 if errors occur, 2 if an invalid optionwas used.EXAMPLESa2enconf securitya2disconf charsetEnables Apache security directives stored in the security configuration files, and disables the charset configuration.FILES/etc/apache2/conf-availableDirectory with files giving information on available configuration files./etc/apache2/conf-enabledDirectory with links to the files in conf-available for enabled configuration files.
a2disconf -p ...