| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 
 | curl www.baidu.com
 
 
 curl -I www.baidu.com
 
 HTTP/1.1 200 OK
 Accept-Ranges: bytes
 Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
 Connection: keep-alive
 Content-Length: 277
 Content-Type: text/html
 Date: Wed, 01 Sep 2021 01:24:34 GMT
 Etag: "575e1f60-115"
 Last-Modified: Mon, 13 Jun 2016 02:50:08 GMT
 Pragma: no-cache
 Server: bfe/1.0.8.18
 
 
 curl -s -w "%{http_code}" -o /dev/null https://blog.driverzeng.com
 200
 curl -s -w "%{http_code}\n" -o /dev/null https://blog.driverzeng.com
 200
 
 
 curl www.360buy.com
 curl -v www.360buy.com
 curl -v www.360buy.com -L
 
 
 curl -I https://blog.driverzeng.com|awk 'NR==1{print $2}'
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 Dload  Upload   Total   Spent    Left  Speed
 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 200
 
 curl -I -s https://blog.driverzeng.com|awk 'NR==1{print $2}'
 200
 
 
 
 yum install -y nginx httpd-tools
 
 htpasswd -b -c /etc/nginx/auth_conf zls zls
 
 vim /etc/nginx/conf.d/zls.conf
 server {
 listen 80;
 server_name _;
 access_log off;
 
 location /nginx_status {
 stub_status;
 auth_basic "Auth access Blog Input your Passwd!";
 auth_basic_user_file auth_conf;
 }
 }
 
 curl 10.0.0.61/nginx_status
 <html>
 <head><title>401 Authorization Required</title></head>
 <body>
 <center><h1>401 Authorization Required</h1></center>
 <hr><center>nginx/1.20.1</center>
 </body>
 </html>
 
 curl -uzls:zls 10.0.0.61/nginx_status
 Active connections: 1
 server accepts handled requests
 5 5 3
 Reading: 0 Writing: 1 Waiting: 0
 
 
 curl http://zls:zls@10.0.0.61/nginx_status
 Active connections: 1
 server accepts handled requests
 6 6 4
 Reading: 0 Writing: 1 Waiting: 0
 
 
 curl -A zls_chrome https://blog.driverzeng.com
 
 |