[Email protected] abc.com]#/usr/local/apache2.4/bin/htpasswd-c-m/data/.htpasswd aming
New Password:
Re-type New Password:
Adding Password for user aming
[Email protected] abc.com]# CAT/DATA/.HTPASSWD
Aming: $apr 1$zwidnzez$jsd12poivh90sry//fz3t.
[Email protected] abc.com]#/usr/local/apache2.4/bin/htpasswd-m/data/.htpasswd Zhangsan
New Password:
Re-type New Password:
Adding Password for user Zhangsan
[Email protected] abc.com]# CAT/DATA/.HTPASSWD
Aming: $apr 1$zwidnzez$jsd12poivh90sry//fz3t.
Zhangsan: $apr 1$arll9ktl$reixadwcbnp8q6pejnamw/
[Email protected] ~]# curl-x127.0.0.1:80-uaming:lizhipeng1204 111.com-i
http/1.1 OK
DATE:FRI, Geneva 2018 00:17:49 GMT
Server:apache/2.4.29 (Unix) php/5.6.30
x-powered-by:php/5.6.30
content-type:text/html; Charset=utf-8
[Email protected] ~]#!curl
curl-x127.0.0.1:80-uaming:lizhipeng1204 111.com-i
http/1.1 OK
DATE:FRI, Geneva 2018 00:27:46 GMT
Server:apache/2.4.29 (Unix) php/5.6.30
x-powered-by:php/5.6.30
content-type:text/html; Charset=utf-8
[Email protected] ~]# curl-x127.0.0.1:80-uaming:lizhipeng1204 111.com/123.php
123.php[[email protected] ~]#
[Email protected] ~]#/usr/local/apache2.4/bin/apachectl-m |grep rewrite
[Email protected] ~]# vi/usr/local/apache2.4/conf/httpd.conf
[Email protected] ~]#/usr/local/apache2.4/bin/apachectl-t
Syntax OK
[Email protected] ~]#/usr/local/apache2.4/bin/apachectl Graceful
[Email protected] ~]#/usr/local/apache2.4/bin/apachectl-m |grep rewrite
Rewrite_module (Shared)
11.18 Apache user authentication 11.19/11.20 domain jump 11.21 Apache access log