如何在apache2加载的模块中禁用mod_authn_file

时间:2013-03-26 07:38:25

标签: apache

我在htaccess文件中使用a2dismod命令禁用模块。这是命令,我试图禁用它们。

    a2dismod mod_authn_file
(OR)
    a2dismod authn_file_module

我的apache日志中出错,

.htaccess: Invalid command 'a2dismod', perhaps misspelled or defined by a module not included in the server configuration

我该如何解决?

1 个答案:

答案 0 :(得分:0)

您正在使用哪种操作系统?

在CentOS上没有a2enmod和a2dismod命令。要在Apache中禁用不需要的模块,您需要执行下端所描述的步骤 - 例如 - 这篇文章:

http://www.cyberciti.biz/faq/howto-disable-apache-modules-under-linux-unix/

相关问题