11.18 Apache user authentication 11.19/11.20 domain jump 11.21 Apache access log

Source: Internet
Author: User
Tags apache access log

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.