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

问题描述:

我在htaccess文件中使用a2dismod命令禁用模块。这是命令,我试图禁用这两个命令。如何禁用apache2加载模块中的mod_authn_file

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 

我怎样才能解决这个问题?

+0

'a2dismod'在'htaccess'文件? 'a2dismod'是一个命令AFAIK。 – Pigueiras 2013-03-26 07:45:26

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

在CentOS上没有a2enmod和a2dismod命令。要禁用不需要的Apache模块,你需要进行的步骤,在下端描述 - 例如 - 这个帖子:

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

+0

正在使用Linux操作系统 – 2013-03-26 07:47:35

+0

然后,此链接将对您有所帮助。 – Arvind 2013-03-26 07:48:55