Disable and Enable modules in apache CentOS7
On CentOS 7, the right way to do it is to go through /etc/httpd/conf.modules.d
and find the appropriate conf files with the modules you want to disable. You can also check /etc/httpd/conf/httpd.conf
, but you'll have better luck in the conf.modules.d
folder.
Simply comment them out, reload apache, and you're good to go.