zoukankan      html  css  js  c++  java
  • 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请求

  • 相关阅读:
    零基础学python-8.2 列表的基本操作、迭代和解析
    零基础学python-8.1 列表
    轻松python文本专题-字符串开头或者结尾匹配
    轻松python文本专题-maketrans和translate
    轻松python文本专题-字符串逐字符反转以及逐单词反转
    轻松python文本专题-拼接、合并字符串
    创建jsp+Servlet+JavaBean+JDBC+MySQL项目的过程
    request传递参数
    表单如何与Servlet控制器关联
    JSTL标签库
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199812.html
Copyright © 2011-2022 走看看