码迷,mamicode.com
首页 > Web开发 > 详细

11.18 Apache用户认证 11.19/11.20 域名跳转 11.21 Apache访问日志

时间:2018-03-03 00:35:41      阅读:287      评论:0      收藏:0      [点我收藏+]

标签:bubuko   linux   jna   pac   har   utf-8   info   shared   data   

 

 

技术分享图片

技术分享图片

[root@lizhipenglinux01 abc.com]# /usr/local/apache2.4/bin/htpasswd -c -m /data/.htpasswd aming
New password:
Re-type new password:
Adding password for user aming

[root@lizhipenglinux01 abc.com]# cat /data/.htpasswd
aming:$apr1$zwiDnzEZ$JSD12PoIVH90Sry//fz3T.

[root@lizhipenglinux01 abc.com]# /usr/local/apache2.4/bin/htpasswd -m /data/.htpasswd zhangsan
New password:
Re-type new password:
Adding password for user zhangsan

[root@lizhipenglinux01 abc.com]# cat /data/.htpasswd
aming:$apr1$zwiDnzEZ$JSD12PoIVH90Sry//fz3T.
zhangsan:$apr1$Arll9KtL$REiXaDWcbNP8q6pEJnaMW/

技术分享图片

技术分享图片

 

技术分享图片

[root@lizhipenglinux01 ~]# curl -x127.0.0.1:80 -uaming:lizhipeng1204 111.com -I
HTTP/1.1 200 OK
Date: Fri, 02 Mar 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技术分享图片

技术分享图片

技术分享图片

[root@lizhipenglinux01 ~]# !curl
curl -x127.0.0.1:80 -uaming:lizhipeng1204 111.com -I
HTTP/1.1 200 OK
Date: Fri, 02 Mar 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

技术分享图片

 

技术分享图片

[root@lizhipenglinux01 ~]# curl -x127.0.0.1:80 -uaming:lizhipeng1204 111.com/123.php
123.php[root@lizhipenglinux01 ~]#

技术分享图片

技术分享图片

[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl -M |grep rewrite
[root@lizhipenglinux01 ~]# vi /usr/local/apache2.4/conf/httpd.conf

技术分享图片

[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl -t
Syntax OK
[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl graceful
[root@lizhipenglinux01 ~]# /usr/local/apache2.4/bin/apachectl -M |grep rewrite
rewrite_module (shared)

技术分享图片

 

技术分享图片

技术分享图片

技术分享图片

 

11.18 Apache用户认证 11.19/11.20 域名跳转 11.21 Apache访问日志

标签:bubuko   linux   jna   pac   har   utf-8   info   shared   data   

原文地址:https://www.cnblogs.com/sisul/p/8495492.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!