0

a2dismodhtaccess ファイルのコマンドを使用してモジュールを無効にします。これがコマンドです。両方を無効にしようとしました。

    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

どうすれば修正できますか?

4

1 に答える 1

0

どのOSを使用していますか?

CentOS には、a2enmod および a2dismod コマンドはありません。Apache で不要なモジュールを無効にするには、たとえば、この投稿の下端に記載されている手順を実行する必要があります。

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

于 2013-03-26T07:46:28.297 に答える