• haproxy 中的http请求和https请求


    use Mojolicious::Lite;
    use JSON qw/encode_json decode_json/;  
    use Encode;
    no strict;
    use JSON; 
    
    # /foo?user=sri
     get '/admin/api/menu' => sub {
              my $c = shift;
    
              $c->render(text =>  "welcome wx3" );
    };
    				   
    
    
      app->start;
    
    
    访问:
    
    http://120.55.1xx.6:3000/admin/api/menu
    
    
         acl             admin_req              path_beg                -i                      /admin
            use_backend     appserver_3000        if                      admin_req
    
    
    
    
    http://www.zjtest6.com/admin/api/menu
    
    
    Jun 24 11:37:19 localhost haproxy[23144]: 192.168.33.29:57999 [24/Jun/2016:11:37:19.866] www appserver_3000/webhost01_8001 0/0/6/11/17 200 154 - - ---- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"
    Jun 24 11:37:19 localhost haproxy[23144]: 192.168.33.29:58000 [24/Jun/2016:11:37:19.968] www webserver_8001/webhost01_8001 4/0/0/1/5 404 317 - - ---- 0/0/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"
    Jun 24 11:37:19 localhost haproxy[23144]: 192.168.33.29:58001 [24/Jun/2016:11:37:19.991] www webserver_8001/webhost01_8001 0/0/0/0/0 404 317 - - ---- 0/0/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"
    Jun 24 11:37:27 localhost haproxy[23144]: 192.168.33.29:58007 [24/Jun/2016:11:37:27.188] www appserver_3000/webhost01_8001 0/0/6/8/14 200 154 - - ---- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"
    Jun 24 11:37:41 localhost haproxy[23144]: 192.168.33.29:58031 [24/Jun/2016:11:37:41.334] www webserver_8001/webhost01_8001 1/0/0/1/2 404 719 - - ---- 0/0/0/0/0 0/0 "GET /favicon.ico HTTP/1.1"
    Jun 24 11:37:42 localhost haproxy[23144]: 192.168.33.29:58035 [24/Jun/2016:11:37:42.250] www appserver_3000/webhost01_8001 0/0/6/9/15 200 154 - - ---- 2/2/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"
    
    
    
    https://www.zjtest6.com/admin/api/menu
    
    Jun 24 11:38:26 localhost haproxy[23144]: 192.168.33.29:59389 [24/Jun/2016:11:38:26.377] www~ appserver_3000/webhost01_8001 6/0/9/9/25 200 154 - - ---- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"
    Jun 24 11:38:34 localhost haproxy[23144]: 192.168.33.29:59400 [24/Jun/2016:11:38:34.649] www~ appserver_3000/webhost01_8001 7/0/7/9/23 200 154 - - ---- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"
    
    
    
    
    www~ 表示https请求
    
    www 表示http请求

  • 相关阅读:
    值类型、引用类型作为方法参数如何执行,ref与out的区别
    asp.net 常用 验证正则表达式
    ASP.NET的错误处理机制
    MSSQL与MYSQL区别
    http协议状态码对照表
    EF 跨数据库支持
    请求管道中的19个事件
    一位软件工程师的6年总结本人读了深受启发,献给所有从事IT开发的人 [转载]
    Windows 窗体的.Net 框架绘图技术
    Windows Live Messenger 8.5 去广告方法及资源文件
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199812.html
Copyright © 2020-2023  润新知