【文件属性】:
文件名称:使用htaccess文件进行认证-RHCE培训课件
文件大小:1.07MB
文件格式:PPT
更新时间:2021-04-26 09:15:44
RHCE培训课件
使用.htaccess文件进行认证
# vi /etc/httpd/conf/httpd.conf
Options FollowSymLinks Indexes
AllowOverride AuthConfig
:wq
# service httpd restart
# cd /var/www/html/private/
# vi .htaccess
AuthType Basic
AuthName “test”
AuthUserFile /etc/httpd/conf/.htpasswd
require valid-user
:qw