Apache: “AuthType not set!” 500 Error

后端 未结 6 1039
独厮守ぢ
独厮守ぢ 2021-01-30 02:10

It\'s been a while since I used the Apache httpd web server. I\'m firing up a local server for a project and when I try to request localhost/index.html, I get a 500 error and I

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 02:28

    I think that you have a version 2.4.x of Apache.

    Have you sure that you load this 2 modules ? - mod_authn_core - mod_authz_core

    LoadModule authn_core_module modules/mod_authn_core.so
    LoadModule authz_core_module modules/mod_authz_core.so
    

    PS : My recommendation for authorization and rights is (by default) :

    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_core_module modules/mod_authn_core.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule authz_core_module modules/mod_authz_core.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    

提交回复
热议问题