andersonan/basic-auth-generator
Composer 安装命令:
composer require andersonan/basic-auth-generator
包简介
generate .htpasswd file to path/domain/.htpasswd
README 文档
README
#install
composer require andersonan/basic-auth-generator
#nginx config
server {
....
location / {
....
autoindex on;
auth_basic "Administrator's Area";
auth_basic_user_file /$path/.htpasswd;
}
}
#generate .htpasswd file
$htpass = new GenerateHtpasswd($path, $domain);
$htpass->filePutHtpasswd([$user => $pass]);
htpasswd generate success fully to $path/$domain/.htpass
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-15