分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 运营维护

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

发布时间:2023-09-06 01:44责任编辑:赖小花关键词:暂无标签

[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访问日志

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

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved