Disable an Apache module and reload the configuration
disable apache module | a2dismod autoindex | remove unused apache modules | disable mod_status apache | a2dismod | modules | systemctlCaution: This command changes the system. Understand what it does before you run it.
a2dismod autoindex && apache2ctl configtest && systemctl reload apache2Removes the module’s symlinks from /etc/apache2/mods-enabled/ and reloads Apache, provided the configuration test still passes afterwards. Useful for slimming down or hardening, for example turning off autoindex (directory listings). If the test fails, some configuration still uses directives from the module.
Note: For dependent or essential modules, a2dismod asks interactively. a2enmod with the same name reverts it.
Also searched as
- disable apache module
- a2dismod autoindex
- remove unused apache modules
- disable mod_status apache