A2ENCONF(8)
π A2ENCONF β enable or disable an apache2 configuration file π
okay bestie, welcome to the a2enconf and a2disconf page β this is from the System Manager's Manual section 8 (the sysadmin one, not the "random user typing stuff" one) π«Ά
β¨ NAME β¨
a2enconf, a2disconf β besties who turn an apache2 configuration file ON or OFF π
β¨ SYNOPSIS β¨
a2enconf [-q|--quiet] [-m|--maintmode] [ configuration ]
a2disconf [-q|--quiet] [-m|--maintmode] [-p|--purge] [ configuration ]
likeβ¦ that's the whole vibe. two little commands, a couple of flags, and a configuration name if you feel like naming names π
β¨ DESCRIPTION β¨
so this page is the quick lil' rundown on a2enconf and a2disconf, no cap π
a2enconf is a script that enables the configuration file you picked, inside the apache2 configuration. how? it creates symlinks inside /etc/apache2/conf-enabled. slay. π¦
and a2disconf? it does the opposite β it disables a specific configuration part by removing those symlinks. bye bye π
and here's the chill part: it is not an error to enable a configuration which is already enabled, or to disable one which is already disabled. no drama, no red text, it just vibes π
ngl there's a lil' catch though. Many configuration files may have a dependency to specific modules. Unlike module dependencies, these are not resolved automatically. so like, do not expect the tool to go fetch the modules for you, bestie, it's not your mom π
Also, configuration fragments stored in the conf-available directory are considered non-essential or being installed and managed by reverse dependencies (e.g. web scripts). iykyk π
β¨ OPTIONS β¨
-q,--quietβ don't show informative messages. it's giving "silent but deadly efficient" π€«-m,--maintmodeβ enables the maintainer mode, that is the program invocation is effectuated automatically by a maintainer script. β οΈ This switch should not be used by end users. hands off, babe, that's for the package maintainers π-p,--purgeβ when disabling a module, purge all traces of the module in the internal state data base. (yes, the original says "module", we report the facts, periodt) π§Ή
β¨ EXIT STATUS β¨
the receipts, bestie π§Ύ β a2enconf and a2disconf exit with:
0if all configurations are processed successfully β1if errors occur π2if an invalid option was used π
β¨ EXAMPLES β¨
a2enconf security
a2disconf charset
what does that do? it enables Apache security directives stored in the security configuration files, and disables the charset configuration. iconic behavior, honestly π
β¨ FILES β¨
/etc/apache2/conf-availableβ directory with files giving information on available configuration files. this is the "the options exist" closet ποΈ/etc/apache2/conf-enabledβ directory with links to the files inconf-availablefor enabled configuration files. this is the "we actually turned it on" closet, full of symlinks β¨
β¨ SEE ALSO β¨
apache2ctl(8), a2enmod(8), a2dismod(8), a2ensite(8), a2dissite(8) β the whole friend group, go say hi π«Ά
β¨ AUTHOR β¨
This manual page was written by Arno Toell <debian@toell.net> for the Debian GNU/Linux distribution, as it is a Debian-specific script with the package. ty for your service, legend π
and that's the whole page, bestie π this was written down on 14 February 2012, living in the System Manager's Manual section, and it's the version that ships as part of the package itself. mwah π go enable some confs, you got this π β¨
π¦ where this page comes from
- debian bookworm: apache2 2.4.67-1~deb12u3 Β· Apache-2.0
- debian bookworm: apache2 2.4.68-1~deb12u1 Β· Apache-2.0
- debian trixie: apache2 2.4.67-1~deb13u3
- debian trixie: apache2 2.4.68-1~deb13u1 Β· Apache-2.0
- debian trixie: apache2 2.4.69-1~deb13u1 Β· Apache-2.0
- ubuntu jammy: apache2 2.4.52-1ubuntu4 Β· Apache-2.0
- ubuntu jammy: apache2 2.4.52-1ubuntu4.24
- ubuntu jammy: apache2 2.4.52-1ubuntu4.25 Β· Apache-2.0
- ubuntu noble: apache2 2.4.58-1ubuntu8 Β· Apache-2.0
- ubuntu noble: apache2 2.4.58-1ubuntu8.16
- ubuntu noble: apache2 2.4.58-1ubuntu8.17 Β· Apache-2.0
- ubuntu questing: apache2 2.4.64-1ubuntu3
- ubuntu questing: apache2 2.4.64-1ubuntu3.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms