How to use a RELATIVE path with AuthUserFile in htaccess?

后端 未结 9 1374
我在风中等你
我在风中等你 2021-01-31 12:51

I have a .htaccess that uses basic authentication. It seems the path to the .htpasswd file isn\'t relative to the htaccess file, but instead to the server config.

So eve

9条回答
  •  深忆病人
    2021-01-31 13:25

    For just in case people are looking for solution for this:

    
        Authtype Basic
        AuthName "user and password"
        AuthUserFile /var/www/www.example.com/.htpasswd
        Require valid-user
    
    

提交回复
热议问题