简体   繁体   中英

How to disable mod_authn_file in apache2 loaded modules

I disable the module using the a2dismod command in htaccess file. Here is the command, I tried to disable for both.

    a2dismod mod_authn_file
(OR)
    a2dismod authn_file_module

I got an error in my apache log,

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

How can i fix it?

Which OS you are using?

On CentOS there are no a2enmod and a2dismod commands. To disable unneeded modules in Apache you need to carry out steps as described at the lower end of - for instance - this post:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM